Compare commits
73
Commits
56a25f0fdb
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96890d787c | ||
|
|
98ad182c19 | ||
|
|
48904c349b | ||
|
|
8a8152dcd0 | ||
|
|
dc6fe52540 | ||
|
|
a372863efe | ||
|
|
0ab2d7ad6b | ||
|
|
3ace070aff | ||
|
|
f52eb0e4d7 | ||
|
|
67afb65c6a | ||
|
|
64350a3115 | ||
|
|
2976f89257 | ||
|
|
a2845bf7e3 | ||
|
|
c16bbf9b04 | ||
|
|
3cc11ba53f | ||
|
|
f77019630c | ||
|
|
f4bc6ebf0c | ||
|
|
ae01283137 | ||
|
|
ceed6cc653 | ||
|
|
26e0f4a4e8 | ||
|
|
d7b38ff25c | ||
|
|
8b31c1fa2f | ||
|
|
3957e36209 | ||
|
|
90f69233c3 | ||
|
|
c0f5243eb3 | ||
|
|
f6e04b65ec | ||
|
|
5b90906329 | ||
|
|
f8cb9dc60f | ||
|
|
7307974a88 | ||
|
|
1f47e608f8 | ||
|
|
195617f345 | ||
|
|
bf478e196e | ||
|
|
065013c0df | ||
|
|
d592f4e09e | ||
|
|
46e6e165f5 | ||
|
|
b58993d619 | ||
|
|
a4bd47c4cc | ||
|
|
ce83099991 | ||
|
|
04d5885ded | ||
|
|
2f2b0a7cde | ||
|
|
6ee7421691 | ||
|
|
d5d39d49ba | ||
|
|
75bb8d7dc2 | ||
|
|
b4192b3099 | ||
|
|
58c8a7a42c | ||
|
|
e0ebaf4b9e | ||
|
|
dc2bf570b4 | ||
|
|
cff2b3217e | ||
|
|
6e26717e29 | ||
|
|
199ac0895d | ||
|
|
fb26e4df4d | ||
|
|
c9f23615f8 | ||
|
|
10584d06fa | ||
|
|
88449be728 | ||
|
|
bbfadc6259 | ||
|
|
d48db67289 | ||
|
|
f2ee5c990e | ||
|
|
739e0f336e | ||
|
|
3fc6b2e81a | ||
|
|
250003727a | ||
|
|
a529ad2dd4 | ||
|
|
c8e3b86dff | ||
|
|
57e4ff55a0 | ||
|
|
070b7b3ce3 | ||
|
|
cad3e4ea60 | ||
|
|
11914b6fc3 | ||
|
|
685645223b | ||
|
|
73886830e0 | ||
|
|
ccd436865b | ||
|
|
4fe1ec10ef | ||
|
|
5ef9b0dda7 | ||
|
|
d7e5d91b8b | ||
|
|
14f40dd1e0 |
@@ -0,0 +1,90 @@
|
||||
pkgname=neovim
|
||||
pkgver=0.11.5
|
||||
pkgdesc="Vim-fork focused on extensibility and agility"
|
||||
homepage="https://neovim.io"
|
||||
license=("Apache-2.0" "vim")
|
||||
bdepends=(luajit gperf gettext glibc)
|
||||
depends=(
|
||||
luajit
|
||||
luv
|
||||
lpeg
|
||||
mpack
|
||||
libutf8proc
|
||||
libuv
|
||||
libvterm
|
||||
msgpack
|
||||
tree-sitter
|
||||
tree-sitter-c
|
||||
tree-sitter-lua
|
||||
tree-sitter-markdown
|
||||
tree-sitter-query
|
||||
tree-sitter-vim
|
||||
tree-sitter-vimdoc
|
||||
unibilium
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"sysinit.vim"
|
||||
"nvimdoc.HOOK"
|
||||
)
|
||||
urls=("https://github.com/neovim/neovim/archive/v${pkgver}.tar.gz"
|
||||
"sysinit.vim"
|
||||
"nvimdoc.HOOK"
|
||||
)
|
||||
sha512sums=("1b2bb241261eefd195275e28bb9ebe4102261d61d8b7fe38ccebad7131ccc38d29fae8494d511b4c440ad71ef95dc405a2ba6e98b5d47426f215c8137c8bc91f"
|
||||
"d485765ff5161c2a79f1d0f944588448b94cd7bf8d72ca021312e755f13d241a11c796f117148624a8d66809caebbd747da56367a6805f1d37a4956e112cb325"
|
||||
"657d3a9e872481e04428f86e8412139998de41395f1b050cc79daecaa247d004118fa718246a1ea7e70112b7d84876f2d70a896d7e52a278eefba7c54ea09ba5"
|
||||
)
|
||||
|
||||
xdg_environment_reset ()
|
||||
{
|
||||
export XDG_DATA_HOME="${HOME}/.local/share";
|
||||
export XDG_CONFIG_HOME="${HOME}/.config";
|
||||
export XDG_CACHE_HOME="${HOME}/.cache";
|
||||
export XDG_STATE_HOME="${HOME}/.local/state";
|
||||
export XDG_RUNTIME_DIR="${TMPDIR}/run";
|
||||
mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" "${XDG_STATE_HOME}" "${XDG_RUNTIME_DIR}";
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}";
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
}
|
||||
|
||||
xdg_environment_reset
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
# Use our system vim dir
|
||||
sed -e "/^# define SYS_VIMRC_FILE/s|\$VIM|${EPREFIX}/etc/vim|" \
|
||||
-i src/nvim/globals.h
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
# appends -flto
|
||||
-DENABLE_LTO=OFF
|
||||
-DPREFER_LUA=no
|
||||
-DLUA_PRG="/usr/bin/luajit"
|
||||
# bug 906019: fix hardcoded usage of ccache
|
||||
-DCACHE_PRG=OFF
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -vDm644 "${filedir}/sysinit.vim" -t "${pkgdir}/etc/vim/"
|
||||
|
||||
install -dv "${pkgdir}/usr/share/nvim/runtime/parser"
|
||||
for parser in c lua markdown query vim vimdoc; do
|
||||
ln -vs ../../../../lib/libtree-sitter-${parser}.so "${pkgdir}"/usr/share/nvim/runtime/parser/${parser}.so
|
||||
done
|
||||
|
||||
ln -vs ../share/nvim/runtime/scripts/less.sh ${pkgdir}/usr/bin/nvimpager
|
||||
|
||||
leaf_install_hook "${filedir}/nvimdoc.HOOK"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,9 @@
|
||||
target=("/usr/share/nvim/site/pack/dist/start/*/doc/")
|
||||
triggers=("install" "remove")
|
||||
operation() {
|
||||
for f in /usr/share/nvim/site/pack/dist/start/*/doc/; do
|
||||
/usr/bin/nvim -es "+helptags $f" +q
|
||||
done
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,97 @@
|
||||
" Default Gentoo configuration file for neovim
|
||||
" Based on the default vimrc shipped by Gentoo with app-editors/vim-core
|
||||
|
||||
" You can override any of these settings on a global basis via the
|
||||
" "/etc/vim/nvimrc.local" file, and on a per-user basis via "~/.nvimrc".
|
||||
" You may need to create these.
|
||||
|
||||
" Neovim comes with sensible defaults, see:
|
||||
" https://github.com/neovim/neovim/issues/2676
|
||||
" Most of the general settings from Gentoo's vimrc have been dropped here.
|
||||
" We add only some necessary fixes and a few Gentoo specific settings.
|
||||
|
||||
" {{{ Locale settings
|
||||
" If we have a BOM, always honour that rather than trying to guess.
|
||||
if &fileencodings !~? "ucs-bom"
|
||||
set fileencodings^=ucs-bom
|
||||
endif
|
||||
|
||||
" Always check for UTF-8 when trying to determine encodings.
|
||||
if &fileencodings !~? "utf-8"
|
||||
" If we have to add this, the default encoding is not Unicode.
|
||||
let g:added_fenc_utf8 = 1
|
||||
set fileencodings+=utf-8
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Fix &shell, see bug #101665.
|
||||
if "" == &shell
|
||||
if executable("/bin/bash")
|
||||
set shell=/bin/bash
|
||||
elseif executable("/bin/sh")
|
||||
set shell=/bin/sh
|
||||
endif
|
||||
endif
|
||||
"}}}
|
||||
|
||||
" {{{ Our default /bin/sh is bash, not ksh, so syntax highlighting for .sh
|
||||
" files should default to bash. See :help sh-syntax and bug #101819.
|
||||
if has("eval")
|
||||
let is_bash=1
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Autocommands
|
||||
if has("autocmd")
|
||||
|
||||
augroup gentoo
|
||||
au!
|
||||
|
||||
" Gentoo-specific settings for ebuilds. These are the federally-mandated
|
||||
" required tab settings. See the following for more information:
|
||||
" http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml
|
||||
" Note that the rules below are very minimal and don't cover everything.
|
||||
" Better to emerge app-vim/gentoo-syntax, which provides full syntax,
|
||||
" filetype and indent settings for all things Gentoo.
|
||||
au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab
|
||||
|
||||
" When editing a file, always jump to the last cursor position
|
||||
autocmd BufReadPost *
|
||||
\ if ! exists("g:leave_my_cursor_position_alone") |
|
||||
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||
\ exe "normal g'\"" |
|
||||
\ endif |
|
||||
\ endif
|
||||
|
||||
" When editing a crontab file, set backupcopy to yes rather than auto. See
|
||||
" :help crontab and bug #53437.
|
||||
autocmd FileType crontab set backupcopy=yes
|
||||
|
||||
" If we previously detected that the default encoding is not UTF-8
|
||||
" (g:added_fenc_utf8), assume that a file with only ASCII characters (or no
|
||||
" characters at all) isn't a Unicode file, but is in the default encoding.
|
||||
" Except of course if a byte-order mark is in effect.
|
||||
autocmd BufReadPost *
|
||||
\ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" &&
|
||||
\ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable |
|
||||
\ set fileencoding= |
|
||||
\ endif
|
||||
|
||||
" Strip trailing spaces on write
|
||||
autocmd BufWritePre *.e{build,class}
|
||||
\ if ! exists("g:leave_my_trailing_space_alone") |
|
||||
\ :%s/\s\+$//e |
|
||||
\ endif
|
||||
|
||||
augroup END
|
||||
|
||||
endif " has("autocmd")
|
||||
" }}}
|
||||
|
||||
" {{{ nvimrc.local
|
||||
if filereadable("/etc/vim/nvimrc.local")
|
||||
source /etc/vim/nvimrc.local
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" vim: set tw=80 sw=2 sts=2 et foldmethod=marker :
|
||||
@@ -0,0 +1,40 @@
|
||||
pkgname=uchardet
|
||||
pkgver=0.0.8
|
||||
pkgdesc="Encoding detector library"
|
||||
homepage="https://www.freedesktop.org/wiki/Software/uchardet/"
|
||||
license=("GPL-2+")
|
||||
_patches=("${pkgname}-${pkgver}-cmake4.patch")
|
||||
_patch_sums=("812378feee2affbba6fb7b4c7c8ab29413577f55317f7603f6ce883c1857fd149707d658b3bf2dc5d42a27ead04d74afd98d86e97ab7b1920f3a37882099a5e0")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://www.freedesktop.org/software/uchardet/releases/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("4a5dcc9ff021352f3b252e103ff1475cec62c974294b264ee9243f024633c3ae44be8c7733608624066113e635f8b156ecb08c8ff87c736d04b07641eb166382"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D BUILD_STATIC=no
|
||||
-D CHECK_SSE2=yes
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,7 @@
|
||||
https://bugs.gentoo.org/951619
|
||||
https://gitlab.freedesktop.org/uchardet/uchardet/-/merge_requests/18
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2 +2 @@
|
||||
-cmake_minimum_required(VERSION 3.1)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
@@ -0,0 +1,29 @@
|
||||
pkgname=cliphist
|
||||
pkgver=0.7.0
|
||||
pkgdesc="Wayland clipboard manager with support for multimedia"
|
||||
homepage="https://github.com/sentriz/cliphist"
|
||||
license=("GPL-3" "MIT" "BSD")
|
||||
depends=(wl-clipboard xdg-utils)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/henri-gasc/cliphist/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("a74ee41fb96796ae4fc397410a466d31a49dfb6de7adf8eb9a16c236ea1db95b14d321909a68ba63fb9fc94b48919aa6634c5d41add51e294f3d6a03d4c62086")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||
export CGO_CFLAGS="$CFLAGS"
|
||||
export CGO_CXXFLAGS="$CXXFLAGS"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||
go build \
|
||||
-ldflags "-linkmode external -extldflags '$LDFLAGS'" \
|
||||
-o $pkgname
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -vDm0755 -t "$pkgdir/usr/bin/" $pkgname
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=yazi
|
||||
pkgver=25.5.31
|
||||
pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O."
|
||||
homepage="https://yazi-rs.github.io"
|
||||
license=("MIT")
|
||||
depends=("oniguruma")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/sxyazi/yazi/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("c390d3e813cbefbe5c430df521f7d563aff8461eb249a90a11fba05db56205bfce5df0f15ae7a57aa8a47cff34094b969fe6fbdfa9cd9a102dba3b8cc9c30911")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -i -r 's/strip\s+= true/strip = false/' Cargo.toml
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export YAZI_GEN_COMPLETIONS=true
|
||||
export RUSTONIG_SYSTEM_LIBONIG=1
|
||||
cargo build --frozen --release --no-default-features
|
||||
}
|
||||
|
||||
_install_completions() {
|
||||
pushd "$1/completions"
|
||||
install -Dm644 "$2.bash" "$pkgdir/usr/share/bash-completion/completions/$2"
|
||||
install -Dm644 "$2.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
|
||||
install -Dm644 "_$2" -t "$pkgdir/usr/share/zsh/site-functions/"
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
|
||||
install -Dm755 "target/release/ya" -t "$pkgdir/usr/bin/"
|
||||
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname-${pkgver}/"
|
||||
install -Dm644 "assets/yazi.desktop" -t "$pkgdir/usr/share/applications/"
|
||||
|
||||
_install_completions "$pkgname-boot" "$pkgname"
|
||||
_install_completions "$pkgname-cli" "ya"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname=zoxide
|
||||
pkgver=0.9.8
|
||||
pkgdesc="A smarter cd command for your terminal"
|
||||
homepage="https://github.com/ajeetdsouza/zoxide"
|
||||
license=("MIT")
|
||||
bdepends=("cargo")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ajeetdsouza/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("44173287c9893d2de248a21d82bf5322302b69659ff87153f248a310529f06083b9ca98d6dc30df4ea574de2139ec127f7bed076d51085164c9742ea7462028c")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
cargo build --frozen --release --all-features
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -vDm755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
|
||||
|
||||
install -vDm644 -t "$pkgdir/usr/share/man/man1/" man/man1/*.1
|
||||
|
||||
cd contrib/completions
|
||||
install -vDm644 -t "$pkgdir/usr/share/zsh/site-functions/" _zoxide
|
||||
install -vDm644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" zoxide.fish
|
||||
install -vDm644 zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,36 @@
|
||||
pkgname=asciidoc
|
||||
pkgver=10.2.1
|
||||
pkgdesc="A plain text human readable/writable document format"
|
||||
homepage="https://asciidoc.org/ https://github.com/asciidoc-py/asciidoc-py/"
|
||||
license=("GPL-2")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/asciidoc-py/asciidoc-py/releases/download/${pkgver}/${sources[0]}")
|
||||
sha512sums=("02d064aab8dfb05af4ae49a7c7bd1381156c6c90f95b2494218c80f01c39987cb971d68c533b5519abade77be9832b3fab653d8ae2ca7bb682c5bb720612839f")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -i \
|
||||
-e '/^build: /a \\tpython3 -m build -wn' \
|
||||
-e '/pip install/{s#pip install --root#installer -d#;s#\.$#dist/*.whl#}' \
|
||||
Makefile.in
|
||||
# https://github.com/asciidoc-py/asciidoc-py/issues/234
|
||||
autoconf
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure \
|
||||
--docdir /usr/share/$pkgname \
|
||||
--prefix /usr
|
||||
make build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
make DESTDIR="${pkgdir}" docs
|
||||
install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/*.1
|
||||
# ascidocapi is deprecated, but still included in 10.x on a "provisional" basis
|
||||
local _platlib="$(python -c 'import sysconfig; print(sysconfig.get_paths()["platlib"])')"
|
||||
install -Dm0644 -t "${pkgdir}/${_platlib}/${pkgname}/" asciidoc/api.py
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=netsurf-buildsystem
|
||||
_name=buildsystem
|
||||
pkgver=1.10
|
||||
pkgdesc="Build system used for netsurf and its libraries"
|
||||
homepage="https://www.netsurf-browser.org"
|
||||
license=("MIT")
|
||||
sources=("${_name}-${pkgver}.tar.gz")
|
||||
urls=("https://download.netsurf-browser.org/libs/releases/${sources[0]}")
|
||||
sha512sums=("0b0f9114567e5c0807bbf066f1c507f386dfb43bf993e3fe487b3c77edc6cee8ea573ca1105558e48b78b2c97857791fe1fe65af8e95fa0f4e205ef701677670")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -e 's:/bin/which:which:' -i "makefiles/Makefile.tools"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
sed -i 's:-Werror::' Makefile
|
||||
make PREFIX=/usr #COMPONENT_TYPE=lib-shared
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
}
|
||||
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=ada
|
||||
pkgver=3.3.0
|
||||
pkgdesc="WHATWG-compliant and fast URL parser written in modern C++"
|
||||
homepage="https://github.com/ada-url/ada"
|
||||
license=("MIT" "Apache-2.0")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ada-url/ada/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("728bf278fcac51a8ffdf5571cb486e789cd49511674c61e354c802bbfaeea64598fb22cd28ef4b02eacdd42c1c3437f40666ca8dba8097e0ecebbae1095de77f")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DADA_TESTING=NO
|
||||
-DADA_TOOLS=NO
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=lua
|
||||
pkgver=5.1.5
|
||||
_majorver=${pkgver%.*}
|
||||
pkgdesc='Powerful lightweight programming language designed for extending applications'
|
||||
arch=('x86_64')
|
||||
homepage='https://www.lua.org/'
|
||||
depends=('readline')
|
||||
license=('MIT')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://dev.gentoo.org/~soap/distfiles/${sources[0]}")
|
||||
sha512sums=("bd827cb2e63cd71d15d846eb29c8745bf869e7b70e12c565ce173623d1fcd29dabf4d33a99c48f294151bb580d830c112cf178e2d80a5a5c36acc7b3bfcd7d24")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -15,7 +15,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --with-readline
|
||||
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=luajit
|
||||
pkgver="2.1.1731601260"
|
||||
ver_channek=${pkgver%.*}
|
||||
ver_relver=${pkgver##*.}
|
||||
pkgdesc="Just-In-Time Compiler for the Lua programming language"
|
||||
homepage="https://luajit.org/"
|
||||
_commit="fe71d0fb54ceadfb5b5f3b6baf29e486d97f6059"
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/LuaJIT/LuaJIT/archive/${_commit}.tar.gz")
|
||||
sha512sums=("4219017edd359bd5c92a37f1e3837c6ef8d9d8be89e53d80e110801e0eb7c8c2a74460376d1e3edef328e9d94f2eef9785e253027c67e1c91716e303e303a766")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
_make() {
|
||||
local make_args=(
|
||||
PREFIX=/usr
|
||||
DESTDIR="${pkgdir}"
|
||||
BUILDMODE=dynamic
|
||||
TARGET_STRIP="true"
|
||||
)
|
||||
make "${make_args[@]}" "$@"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
_make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
test "${ver_relver}" == "$(cat .relver)"
|
||||
test "${ver_relver}" == "$(cat src/luajit_relver.txt)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
_make install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,69 @@
|
||||
pkgname=appstream
|
||||
_name="AppStream"
|
||||
pkgver=1.0.6
|
||||
pkgdesc="Cross-distro effort for providing metadata for software in the Linux ecosystem"
|
||||
homepage="https://www.freedesktop.org/wiki/Distributions/AppStream/"
|
||||
license=("LGPL-2.1+" "GPL-2+")
|
||||
depends=(
|
||||
zstd
|
||||
glib:2
|
||||
libxml2:2
|
||||
libxmlb
|
||||
libyaml
|
||||
snowball-stemmer
|
||||
curl
|
||||
gobject-introspection
|
||||
systemd
|
||||
)
|
||||
bdepends=(
|
||||
libxslt
|
||||
itstool
|
||||
)
|
||||
_patches=("${pkgname}-1.0.0-disable-Werror-flags.patch")
|
||||
_patch_sums=("e5df79dda5f433c67dd0b02c681e04cde22e6648a4d438a50314575e37353686fbcbc4fd56ee209095f71498d0e553b4d061e328fcc740b19ab7ae9281b85423")
|
||||
sources=("${_name}-${pkgver}.tar.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://www.freedesktop.org/software/appstream/releases/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("a7a34ce2b37f7a3d9f22a69ff4a546d4fb33edaec4a303bd7541ede990d8a2c2a67d17f61c9cf09d75af277e308d21baaf42d6b968eca1a11d1df983a27e02a5"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=2
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D apidocs=false
|
||||
-D docs=false
|
||||
-D compose=false
|
||||
-D maintainer=false
|
||||
-D static-analysis=false
|
||||
-D stemming=true
|
||||
-D vapi=false
|
||||
-D apt-support=false
|
||||
-D compose=false
|
||||
-D install-docs=false
|
||||
-D gir=true
|
||||
-D qt=false
|
||||
-D systemd=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,56 @@
|
||||
pkgname=appstream-glib
|
||||
pkgver=0.8.3
|
||||
pkgdesc="Provides GObjects and helper methods to read and write AppStream metadata"
|
||||
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/ https://github.com/hughsie/appstream-glib"
|
||||
license=("LGPL-2.1+")
|
||||
slot=("0/8")
|
||||
depend=(
|
||||
glib
|
||||
util-linux
|
||||
libarchive
|
||||
curl
|
||||
json-glib
|
||||
"gdk-pixbuf[introspection]"
|
||||
fontconfig
|
||||
libyaml
|
||||
pango
|
||||
gobject-introspection
|
||||
)
|
||||
bdepends=(
|
||||
gperf
|
||||
libxml2:2
|
||||
libxslt
|
||||
gettext
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://people.freedesktop.org/~hughsient/${pkgname}/releases/${sources[0]}")
|
||||
sha512sums=("df4247b710cf234eef037f5f7be6be4872638d0686becd65e10e6a4214b0dd1b48ffbbd69179f3fb9777373926840d5b776e20a41ce11d4926114345944db127")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D dep11=true
|
||||
-D builder=true
|
||||
-D rpm=false
|
||||
-D alpm=false
|
||||
-D fonts=false
|
||||
-D man=true
|
||||
-D gtk-doc=false
|
||||
-D introspection=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,47 @@
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -90,44 +90,6 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
-# a few compiler warning flags we always want enabled
|
||||
-add_project_arguments(
|
||||
- cc.get_supported_arguments([
|
||||
- '-Werror=shadow',
|
||||
- '-Werror=empty-body',
|
||||
- '-Werror=strict-prototypes',
|
||||
- '-Werror=missing-prototypes',
|
||||
- '-Werror=implicit-function-declaration',
|
||||
- '-Werror=pointer-arith',
|
||||
- '-Werror=missing-declarations',
|
||||
- '-Werror=return-type',
|
||||
- '-Werror=int-conversion',
|
||||
- '-Werror=incompatible-pointer-types',
|
||||
- '-Werror=misleading-indentation',
|
||||
- '-Werror=missing-include-dirs',
|
||||
- '-Werror=declaration-after-statement',
|
||||
- '-Werror=format-security',
|
||||
-
|
||||
- '-Wno-missing-field-initializers',
|
||||
- '-Wno-error=missing-field-initializers',
|
||||
- '-Wno-unused-parameter',
|
||||
- '-Wno-error=unused-parameter',
|
||||
- ]),
|
||||
- language: 'c'
|
||||
-)
|
||||
-add_project_arguments(
|
||||
- '-Wno-unused-parameter',
|
||||
- '-Werror=empty-body',
|
||||
- '-Werror=pointer-arith',
|
||||
- '-Werror=init-self',
|
||||
- '-Werror=missing-declarations',
|
||||
- '-Werror=return-type',
|
||||
- '-Werror=misleading-indentation',
|
||||
- '-Werror=format-security',
|
||||
-
|
||||
- language: 'cpp'
|
||||
-)
|
||||
-
|
||||
# Vendor extensions in system headers
|
||||
if host_machine.system() != 'netbsd'
|
||||
# on NetBSD, defining POSIX_C_SOURCE *removes* non-POSIX symbols from namespace,
|
||||
@@ -0,0 +1,59 @@
|
||||
pkgname=libmpack
|
||||
pkgver=1.0.5
|
||||
pkgdesc="Simple implementation of msgpack in C"
|
||||
homepage="https://github.com/libmpack/libmpack"
|
||||
license=("MIT")
|
||||
_patches=("${pkgname}-1.0.5-libtool.patch")
|
||||
_patch_sums=("dcb0029018df34aa5530ef6f9f0c8ffec7d33288e8854273db98c823f03663d260837c80846acf5571400dd0f78588f26fe62b20a2f9469c09f22189b0a65fff")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("6e30edafcacfb580b410bc6749ed7fe8f18b3be0cb98959339853e77bc3ec0cda6df08a0f1f22768cfc773458a2ea6bcef4f0421eea55cf56c58981d13711a04"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
|
||||
# Respect users CFLAGS
|
||||
sed -e 's/-ggdb//g' -i .config/debug.mk
|
||||
sed -e 's/-O3//g' -i .config/release.mk
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --enable-shared --disable-static
|
||||
local make_args=(
|
||||
"VERBOSE=1"
|
||||
"PREFIX=/usr"
|
||||
"config=release"
|
||||
"LIBDIR=/usr/lib"
|
||||
"INCDIR=/usr/include"
|
||||
)
|
||||
make "${make_args[@]}" lib-bin
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make VERBOSE=1 XLDFLAGS="-shared" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local make_args=(
|
||||
"VERBOSE=1"
|
||||
"PREFIX=/usr"
|
||||
"DESTDIR=${pkgdir}"
|
||||
"config=release"
|
||||
"LIBDIR=/usr/lib"
|
||||
"INCDIR=/usr/include"
|
||||
"XLDFLAGS=-shared"
|
||||
)
|
||||
make "${make_args[@]}" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,89 @@
|
||||
https://bugs.gentoo.org/778899
|
||||
|
||||
Author: orbea <orbea@riseup.net>
|
||||
Date: Fri Jun 17 17:29:51 2022 -0700
|
||||
|
||||
configure: Add minimal configure.ac for libtool
|
||||
|
||||
diff --git a/Makefile b/Makefile.in
|
||||
similarity index 92%
|
||||
rename from Makefile
|
||||
rename to Makefile.in
|
||||
index 76cfd35..2c05a99 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile.in
|
||||
@@ -4,11 +4,9 @@
|
||||
config ?= debug
|
||||
SYSTEM ?= $(shell uname -s)
|
||||
|
||||
-ifeq ($(SYSTEM),Darwin)
|
||||
- LIBTOOL ?= glibtool
|
||||
-else
|
||||
- LIBTOOL ?= libtool
|
||||
-endif
|
||||
+top_builddir = @top_builddir@
|
||||
+
|
||||
+LIBTOOL := @LIBTOOL@
|
||||
|
||||
ifneq ($(VERBOSE),1)
|
||||
LIBTOOL += --quiet
|
||||
@@ -33,11 +31,11 @@ else
|
||||
XCFLAGS += -std=c99
|
||||
endif
|
||||
|
||||
-NAME := mpack
|
||||
-MAJOR := 1
|
||||
-MINOR := 0
|
||||
-PATCH := 3
|
||||
-VERSION := $(MAJOR).$(MINOR).$(PATCH)
|
||||
+NAME := @PACKAGE_NAME@
|
||||
+MAJOR := @MAJOR@
|
||||
+MINOR := @MINOR@
|
||||
+PATCH := @PATCH@
|
||||
+VERSION := @PACKAGE_VERSION@
|
||||
|
||||
LT_REVISION=0
|
||||
LT_CURRENT=0
|
||||
@@ -130,6 +128,11 @@ clean:
|
||||
$(TOBJ): XCFLAGS := $(filter-out $(TEST_FILTER_OUT),$(XCFLAGS)) \
|
||||
-std=gnu99 -Wno-conversion -Wno-unused-parameter
|
||||
|
||||
+$(OUTDIR)/.tag:
|
||||
+ @mkdir -p $(OUTDIR)/$(SRCDIR)
|
||||
+ @mkdir -p $(OUTDIR)/$(TESTDIR)/deps/tap
|
||||
+ @touch $@
|
||||
+
|
||||
$(COVOUT): $(SRC) $(TSRC)
|
||||
find $(OUTDIR) -type f -name '*.gcda' -print0 | xargs -0 rm -f
|
||||
$(MAKE) CFLAGS='-DNDEBUG -g --coverage' LDFLAGS=--coverage config=$(config) test
|
||||
@@ -142,7 +145,7 @@ $(PROFOUT): $(SRC) $(TSRC)
|
||||
gprof $(OUTDIR)/run-tests gmon.out > $@
|
||||
rm gmon.out
|
||||
|
||||
-$(OUTDIR)/%.lo: %.c $(AMALG)
|
||||
+$(OUTDIR)/%.lo: %.c $(AMALG) $(OUTDIR)/.tag
|
||||
@echo compile $< =\> $@
|
||||
@$(LIBTOOL) --mode=compile --tag=CC $(CC) $(XCFLAGS) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
new file mode 100644
|
||||
index 0000000..d2f02e7
|
||||
--- /dev/null
|
||||
+++ b/configure.ac
|
||||
@@ -0,0 +1,16 @@
|
||||
+m4_define([MAJOR], [1])
|
||||
+m4_define([MINOR], [0])
|
||||
+m4_define([PATCH], [5])
|
||||
+
|
||||
+AC_INIT([mpack], [MAJOR.MINOR.PATCH])
|
||||
+AC_CONFIG_FILES([Makefile])
|
||||
+
|
||||
+LT_INIT
|
||||
+
|
||||
+AC_SUBST([top_builddir], [$abs_builddir])
|
||||
+
|
||||
+AC_SUBST([MAJOR], [MAJOR])
|
||||
+AC_SUBST([MINOR], [MINOR])
|
||||
+AC_SUBST([PATCH], [PATCH])
|
||||
+
|
||||
+AC_OUTPUT
|
||||
@@ -0,0 +1,23 @@
|
||||
pkgname=libutf8proc
|
||||
pkgver=2.11.2
|
||||
pkgdesc="A clean C Library for processing UTF-8 Unicode data"
|
||||
homepage="https://github.com/JuliaStrings/utf8proc"
|
||||
license=("MIT")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/JuliaStrings/${pkgname#lib}/releases/download/v${pkgver}/${pkgname#lib}-${pkgver}.tar.gz")
|
||||
sha512sums=("1c5c5c21d09f5afae0eecdfe7698bc5a87a19b4c524396e4a55f7338a1d3907cf74e3252160bc3e6708d79904e83768563986d2ef9db6ead92e557742ac1bd73")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make prefix="/usr"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" prefix="/usr" install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,41 @@
|
||||
pkgname=libvterm
|
||||
pkgver=0.3.3
|
||||
pkgdesc="An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"
|
||||
homepage="https://www.leonerd.org.uk/code/libvterm/"
|
||||
license=("MIT")
|
||||
_patches=("${pkgname}-0.3.3-slibtool.patch")
|
||||
_patch_sums=("4d037b7f6538ab3a994d6e4398b9aa89f7ec689ff646899bd25af609d712cb5c2eab75ced1dae5a9cfdd9a2668d418951df681d0f81c872964beaeda32f447da")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://launchpad.net/libvterm/trunk/v0.3/+download/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("0117f71988d2c3c1b5e46d0778ce491a8ab9033f3afc9a9905b6d52d0e2adb59ee101667826281470e4c9de5178cbe966f4ecb2c7673e9644c7ca3508491bb49"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --disable-static
|
||||
make VERBOSE=1
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make VERBOSE=1 test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make VERBOSE=1 DESTDIR="${pkgdir}" install
|
||||
find "${pkgdir}" -name '*.la' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,102 @@
|
||||
Author: orbea <orbea@riseup.net>
|
||||
Date: Tue Aug 29 16:56:23 2023 -0700
|
||||
Subject: [PATCH] build: Add a minimal configures script
|
||||
|
||||
When building libvterm with slibtool using the rlibtool symlink the
|
||||
build will fail when the generated libtool is not found. This file is
|
||||
required with rlibtool so that the build can determine if the build
|
||||
should be shared, static or both.
|
||||
|
||||
This can be solved by adding a minimal configure script.
|
||||
|
||||
The build steps are now:
|
||||
|
||||
autoreconf -fi
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
Gentoo Bug: https://bugs.gentoo.org/779034
|
||||
diff --git a/Makefile b/Makefile.in
|
||||
similarity index 88%
|
||||
rename from Makefile
|
||||
rename to Makefile.in
|
||||
index 41b08ed..763c8c4 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile.in
|
||||
@@ -1,13 +1,13 @@
|
||||
-ifeq ($(shell uname),Darwin)
|
||||
- LIBTOOL ?= glibtool
|
||||
-else
|
||||
- LIBTOOL ?= libtool
|
||||
-endif
|
||||
+top_builddir = @top_builddir@
|
||||
+
|
||||
+LIBTOOL = @LIBTOOL@
|
||||
|
||||
ifneq ($(VERBOSE),1)
|
||||
LIBTOOL +=--quiet
|
||||
endif
|
||||
|
||||
+CC = @CC@
|
||||
+
|
||||
override CFLAGS +=-Wall -Iinclude -std=c99 -Wpedantic
|
||||
|
||||
ifeq ($(shell uname),SunOS)
|
||||
@@ -36,17 +36,21 @@ INCFILES=$(TBLFILES:.tbl=.inc)
|
||||
|
||||
HFILES_INT=$(sort $(wildcard src/*.h)) $(HFILES)
|
||||
|
||||
+VERSION_MAJOR=@VERSION_MAJOR@
|
||||
+VERSION_MINOR=@VERSION_MINOR@
|
||||
+
|
||||
VERSION_CURRENT=0
|
||||
VERSION_REVISION=0
|
||||
VERSION_AGE=0
|
||||
|
||||
-VERSION=0.3.3
|
||||
+VERSION=@PACKAGE_VERSION@
|
||||
|
||||
-PREFIX=/usr/local
|
||||
-BINDIR=$(PREFIX)/bin
|
||||
-LIBDIR=$(PREFIX)/lib
|
||||
-INCDIR=$(PREFIX)/include
|
||||
-MANDIR=$(PREFIX)/share/man
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+BINDIR=@bindir@
|
||||
+LIBDIR=@libdir@
|
||||
+INCDIR=@includedir@
|
||||
+MANDIR=@mandir@
|
||||
MAN3DIR=$(MANDIR)/man3
|
||||
|
||||
all: $(LIBRARY) $(BINFILES)
|
||||
@@ -70,7 +74,7 @@ src/encoding.lo: $(INCFILES)
|
||||
|
||||
bin/%: bin/%.c $(LIBRARY)
|
||||
@echo CC $<
|
||||
- @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $< -lvterm $(LDFLAGS)
|
||||
+ @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
t/harness.lo: t/harness.c $(HFILES)
|
||||
@echo CC $<
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
new file mode 100644
|
||||
index 0000000..34292fd
|
||||
--- /dev/null
|
||||
+++ b/configure.ac
|
||||
@@ -0,0 +1,14 @@
|
||||
+m4_define([version_major], [0])
|
||||
+m4_define([version_minor], [3])
|
||||
+
|
||||
+AC_INIT([libvterm], [version_major.version_minor])
|
||||
+AC_CONFIG_FILES([Makefile])
|
||||
+
|
||||
+LT_INIT
|
||||
+
|
||||
+AC_SUBST([top_builddir], [$abs_builddir])
|
||||
+
|
||||
+AC_SUBST([VERSION_MAJOR], [version_major])
|
||||
+AC_SUBST([VERSION_MINOR], [version_minor])
|
||||
+
|
||||
+AC_OUTPUT
|
||||
@@ -0,0 +1,32 @@
|
||||
pkgname=msgpack
|
||||
_name="${pkgname}-c"
|
||||
pkgver=6.0.0
|
||||
pkgdesc="MessagePack is a binary-based efficient data interchange format"
|
||||
homepage="https://msgpack.org/ https://github.com/msgpack/msgpack-c/"
|
||||
license=("Boost-1.0")
|
||||
sources=("${_name}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/${pkgname}/${pkgname}-c/releases/download/c-${pkgver}/${sources[0]}")
|
||||
sha512sums=("77a2a3c984e04fcda298ae34571b6826f1d4f6e53b5f7166992269421ae3153b986ed69ba0360347920047e38f6941680bc9e38563ec79f15591bf8d66cd7978")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DMSGPACK_BUILD_EXAMPLES=OFF
|
||||
-DMSGPACK_BUILD_TESTS=OFF
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,58 @@
|
||||
pkgname=protobuf
|
||||
pkgver=31.1
|
||||
pkgdesc="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||
homepage="https://protobuf.dev/"
|
||||
license=("BSD")
|
||||
depends=(abseil-cpp zlib)
|
||||
_patches=("${pkgname}-30.0-findJsonCpp.patch")
|
||||
_patch_sums=("e3212111ada7f0a9dba717c70a9257b366a9cb6dfecfbcb67cf76645dcecf653cfb23b99ac394be16fa9c3baa8439be59ef5fa64631f31263da6c82c875665a5")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"FindJsonCpp.cmake"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/protocolbuffers/protobuf/releases/download/v${pkgver}/${sources[0]}"
|
||||
"FindJsonCpp.cmake"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("5bf730e37183defcb29cf4831128f536ad8bcdce2b2b46b297d95f3de4a037b9ff3b6c57df66a039256dcefd828ba9d43c32b01a7a82aa5c881a9ae12cadb643"
|
||||
"4a824ac0a73eebf622f999c4a78add515fea92eb44e6a1bc754343567e747f5258ca0d1c600644c67691583779a9cad814a6daf983e666c389fcaa90a2ec0aa6"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
cp "${filedir}/FindJsonCpp.cmake" cmake
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D protobuf_BUILD_CONFORMANCE=no
|
||||
-D protobuf_BUILD_LIBPROTOC=yes
|
||||
-D protobuf_BUILD_LIBUPB=yes
|
||||
-D protobuf_BUILD_PROTOBUF_BINARIES=yes
|
||||
-D protobuf_BUILD_PROTOC_BINARIES=yes
|
||||
-D protobuf_BUILD_SHARED_LIBS="yes"
|
||||
-D protobuf_BUILD_TESTS=no
|
||||
-D protobuf_DISABLE_RTTI="no"
|
||||
-D protobuf_INSTALL="yes"
|
||||
-D protobuf_TEST_XML_OUTDIR=no
|
||||
-D protobuf_WITH_ZLIB=yes
|
||||
-D protobuf_VERBOSE=no
|
||||
-D CMAKE_MODULE_PATH="cmake"
|
||||
-D protobuf_LOCAL_DEPENDENCIES_ONLY="yes"
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -vDm644 editors/proto.vim -t "${pkgdir}"/usr/share/vim/vimfiles/syntax
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,40 @@
|
||||
find_path(JsonCpp_INCLUDE_DIR "json/json.h"
|
||||
PATH_SUFFIXES "jsoncpp"
|
||||
DOC "jsoncpp include directory")
|
||||
mark_as_advanced(JsonCpp_INCLUDE_DIR)
|
||||
|
||||
find_library(JsonCpp_LIBRARY
|
||||
NAMES jsoncpp
|
||||
DOC "jsoncpp library")
|
||||
mark_as_advanced(JsonCpp_LIBRARY)
|
||||
|
||||
if (JsonCpp_INCLUDE_DIR AND EXISTS "${JsonCpp_INCLUDE_DIR}/json/version.h")
|
||||
file(STRINGS "${JsonCpp_INCLUDE_DIR}/json/version.h" _JsonCpp_version_lines
|
||||
REGEX "JSONCPP_VERSION_[A-Z]+")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_MAJOR +([0-9]+).*" "\\1" _JsonCpp_version_major "${_JsonCpp_version_lines}")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_MINOR +([0-9]+).*" "\\1" _JsonCpp_version_minor "${_JsonCpp_version_lines}")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_PATCH +([0-9]+).*" "\\1" _JsonCpp_version_patch "${_JsonCpp_version_lines}")
|
||||
set(JsonCpp_VERSION "${_JsonCpp_version_major}.${_JsonCpp_version_minor}.${_JsonCpp_version_patch}")
|
||||
unset(_JsonCpp_version_major)
|
||||
unset(_JsonCpp_version_minor)
|
||||
unset(_JsonCpp_version_patch)
|
||||
unset(_JsonCpp_version_lines)
|
||||
endif ()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(JsonCpp
|
||||
REQUIRED_VARS JsonCpp_LIBRARY JsonCpp_INCLUDE_DIR
|
||||
VERSION_VAR JsonCpp_VERSION)
|
||||
|
||||
if (JsonCpp_FOUND)
|
||||
set(JsonCpp_INCLUDE_DIRS "${JsonCpp_INCLUDE_DIR}")
|
||||
set(JsonCpp_LIBRARIES "${JsonCpp_LIBRARY}")
|
||||
|
||||
if (NOT TARGET JsonCpp::JsonCpp)
|
||||
add_library(JsonCpp::JsonCpp SHARED IMPORTED)
|
||||
set_target_properties(JsonCpp::JsonCpp PROPERTIES
|
||||
IMPORTED_LOCATION "${JsonCpp_LIBRARY}"
|
||||
IMPORTED_IMPLIB "${JsonCpp_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${JsonCpp_INCLUDE_DIR}")
|
||||
endif ()
|
||||
endif ()
|
||||
@@ -0,0 +1,44 @@
|
||||
From 2fe6cac5797bead74c473c795fdc5f9d50703894 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Zander <negril.nx+gentoo@gmail.com>
|
||||
Date: Thu, 6 Mar 2025 13:19:01 +0100
|
||||
Subject: [PATCH] fix JsonCPP name
|
||||
|
||||
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
|
||||
|
||||
diff --git a/cmake/conformance.cmake b/cmake/conformance.cmake
|
||||
index 7377841..dba05aa 100644
|
||||
--- a/cmake/conformance.cmake
|
||||
+++ b/cmake/conformance.cmake
|
||||
@@ -1,9 +1,9 @@
|
||||
# Don't run jsoncpp tests.
|
||||
set(JSONCPP_WITH_TESTS OFF)
|
||||
|
||||
-if (NOT TARGET jsoncpp_lib)
|
||||
+if (NOT TARGET JsonCpp::JsonCpp)
|
||||
if (NOT protobuf_FORCE_FETCH_DEPENDENCIES)
|
||||
- find_package(jsoncpp)
|
||||
+ find_package(JsonCpp)
|
||||
endif()
|
||||
|
||||
# Fallback to fetching Googletest from github if it's not found locally.
|
||||
@@ -21,7 +21,7 @@ if (NOT TARGET jsoncpp_lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
-if (NOT TARGET jsoncpp_lib)
|
||||
+if (NOT TARGET JsonCpp::JsonCpp)
|
||||
message(FATAL_ERROR
|
||||
"Cannot find jsoncpp dependency that's needed to build conformance tests.\n"
|
||||
"If instead you want to skip these tests, run cmake with:\n"
|
||||
@@ -151,7 +151,7 @@ add_test(NAME conformance_cpp_test
|
||||
set(JSONCPP_WITH_TESTS OFF CACHE BOOL "Disable tests")
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
- target_link_libraries(conformance_test_runner jsoncpp_lib)
|
||||
+ target_link_libraries(conformance_test_runner JsonCpp::JsonCpp)
|
||||
else()
|
||||
target_link_libraries(conformance_test_runner jsoncpp_static)
|
||||
endif()
|
||||
--
|
||||
2.48.1
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=snowball-stemmer
|
||||
pkgver=2.2.0
|
||||
pkgdesc="Snowball compiler and stemming algorithms"
|
||||
homepage="https://snowballstem.org/ https://github.com/snowballstem/snowball/"
|
||||
license=("BSD")
|
||||
slot="0/${pkgver%%.*}"
|
||||
_patches=("snowball-stemmer-2.2.0-shared-library.patch")
|
||||
_patch_sums=("611dc546bd3744d0c9d86fea2206707eafbe6c9bd2384bbe6d017a4e8a5ef919eeb32e594157e6767a63398f7cdb2fc9d87969eb544756a7c853d33efdc45693")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/snowballstem/snowball/archive/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("02c43313de9de2518ea51cfb11f1c29145fc046c7838329bfdefd70b604009ad44b6db8175c25b0db31f03db30a6aec5857aa35775a9c204ec976df9cae62957"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -D snowball stemwords -t "$pkgdir/usr/bin"
|
||||
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -Dm644 include/libstemmer.h -t "$pkgdir/usr/include"
|
||||
install -Dm644 libstemmer.so.${pkgver} -t "$pkgdir/usr/lib"
|
||||
ln -s libstemmer.so.${pkgver} "$pkgdir/usr/lib/libstemmer.so.${pkgver%%.*}"
|
||||
ln -s libstemmer.so.${pkgver%%.*} "$pkgdir/usr/lib/libstemmer.so"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,59 @@
|
||||
This is based on a patch taken from alpinelinux, however, duplicated
|
||||
libstemmer.o and stemwords targets were removed and the patch was
|
||||
rebased on top of v2.2.0 tag.
|
||||
|
||||
Created shared library contains a lot of relocations, which slow down loading.
|
||||
It is known issue and probably the main reason why upstream does not support
|
||||
shared library yet [1].
|
||||
|
||||
[1] https://github.com/snowballstem/snowball/issues/34#issuecomment-203200078
|
||||
|
||||
Alpinelinux-patch: https://git.alpinelinux.org/aports/tree/community/snowball/libstemmer-library.patch?id=28f9d9e192876c43fd96bc5856cd9d8a50dd49c0
|
||||
Upstream-issue: https://github.com/snowballstem/snowball/issues/34
|
||||
|
||||
diff --git a/GNUmakefile b/GNUmakefile
|
||||
index 98eb1fa..9b539ec 100644
|
||||
--- a/GNUmakefile
|
||||
+++ b/GNUmakefile
|
||||
@@ -4,6 +4,8 @@
|
||||
# which hard-code it.
|
||||
SNOWBALL_VERSION = 2.2.0
|
||||
|
||||
+MAJOR_VERSION := $(shell echo $(SNOWBALL_VERSION) | cut -d. -f1)
|
||||
+
|
||||
ifeq ($(OS),Windows_NT)
|
||||
EXEEXT = .exe
|
||||
endif
|
||||
@@ -170,12 +172,17 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o)
|
||||
JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
|
||||
JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
|
||||
|
||||
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
-CPPFLAGS=
|
||||
+CFLAGS+=-fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
+CPPFLAGS+=
|
||||
|
||||
INCLUDES=-Iinclude
|
||||
|
||||
-all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
+all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
+
|
||||
+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR_VERSION),-version-script,libstemmer/symbol.map -o $@.$(SNOWBALL_VERSION) $^
|
||||
+ ln -s $@.$(SNOWBALL_VERSION) $@.$(MAJOR_VERSION)
|
||||
+ ln -s $@.$(SNOWBALL_VERSION) $@
|
||||
|
||||
algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt
|
||||
libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt
|
||||
diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map
|
||||
new file mode 100644
|
||||
index 0000000..7a3d423
|
||||
--- /dev/null
|
||||
+++ b/libstemmer/symbol.map
|
||||
@@ -0,0 +1,6 @@
|
||||
+SB_STEMMER_0 {
|
||||
+ global:
|
||||
+ sb_stemmer_*;
|
||||
+ local:
|
||||
+ *;
|
||||
+};
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=tree-sitter
|
||||
pkgver=0.25.10
|
||||
pkgdesc="Tree-sitter is a parser generator tool and an incremental parsing library"
|
||||
homepage="https://github.com/tree-sitter/tree-sitter"
|
||||
license=("MIT")
|
||||
_patches=("${pkgname}-0.22.2-no-static.patch")
|
||||
_patch_sums=("7d06011b5f5068eb94891d9e116a5d6a3d3023fae999a9766cc19309ae2a4a33d4722074d313efcd87231794ef79d18907e468299da7de4fc4edaacbb9cbc9eb")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("f0465a2fabe303c1b62f1f55ed08aa57372ac11370d229adcccd99b5e8067be53e92da281cdfbcd034e2ecefb33ac90a119eeac9035670ac8fbaa4242cb87a11"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr STRIP=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" PREFIX="/usr" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=tree-sitter-c
|
||||
pkgver=0.24.1
|
||||
pkgdesc="C grammar for Tree-sitter"
|
||||
homepage="https://github.com/tree-sitter/tree-sitter-c"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/tree-sitter/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("51cf052230ee835d4ae5e6c5adb24aeaeba3b4f106aceefaf4000bd0e57321946f1b3e3b0f9ea71d1c17a618604c6c7269c80c3ecc5ca17e22c883ff5ce4c304")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
tree-sitter generate src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr PARSER_URL=$homepage
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=tree-sitter-lua
|
||||
pkgver=0.4.0
|
||||
pkgdesc="Lua grammar for Tree-sitter"
|
||||
homepage="https://github.com/tree-sitter-grammars/tree-sitter-lua"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/tree-sitter-grammars/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("6afcac83394b0583b721b88acd1115b97e8844d0c94134235e63df1b0e46773691ab37b7ff1921d7672924baf0144eb6f60ac0196daf8691c96f0567ccac1f67")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
tree-sitter generate src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr PARSER_URL=$homepage
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=tree-sitter-markdown
|
||||
pkgver=0.5.1
|
||||
pkgdesc="Markdown grammar for Tree-sitter"
|
||||
homepage="https://github.com/tree-sitter-grammars/tree-sitter-markdown"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/tree-sitter-grammars/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("52356a5bb9d6b224922d34e64b8ea8d37bd9db51f3ef61b11a1da1d01e9a44f3bd4e1367e7eb8d7c2c4bcc62939c573999ce0e0382ab56b24b6db82cc91e70ec")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
cd ${pkgname}
|
||||
tree-sitter generate src/grammar.json
|
||||
cd ../${pkgname}-inline
|
||||
tree-sitter generate src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
#make PREFIX=/usr PARSER_URL=$homepage
|
||||
local cmake_args=(
|
||||
-W no-dev
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=Release
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=tree-sitter-query
|
||||
pkgver=0.6.2
|
||||
pkgdesc="Tree-sitter query grammar for Tree-sitter"
|
||||
homepage="https://github.com/tree-sitter-grammars/tree-sitter-query"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/tree-sitter-grammars/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("850ea075529a2d1a6ece3a8fcf3a1f8736d22c1e5e6956b555fa0a0f557020a1e450361083bd9b50b24a882e0d01fc9dd4cbe9830483f27812940c0eedb70aaa")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
tree-sitter generate --no-bindings src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr PARSER_URL=$homepage
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=tree-sitter-vim
|
||||
pkgver=0.7.0
|
||||
pkgdesc="Lua grammar for Tree-sitter"
|
||||
homepage="https://github.com/tree-sitter-grammars/tree-sitter-lua"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/tree-sitter-grammars/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("fe585fc01f1fae6239ac89c1924d5adf70c43f41b40a8c811457068723094bc4a3a545581738173d39f10b6525ca711d419c3cb0ab59d48c60a9ea68c62ade3b")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
tree-sitter generate --no-bindings src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr PARSER_URL=$homepage
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=tree-sitter-vimdoc
|
||||
pkgver=4.0.0
|
||||
pkgdesc="Vimdoc grammar for Tree-sitter"
|
||||
homepage="https://github.com/neovim/tree-sitter-vimdoc"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter-cli")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/neovim/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("c4a40587c4ce7168b7a166c6338fc77d5b14c5860959c6170cd7d5ce424097e70746992aa722eb88c4b4e96b0d85158b142b7e9ef9aa09ace16442e8522c77af")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
|
||||
#tree-sitter generate --no-bindings src/grammar.json
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make PREFIX=/usr PARSER_URL=$homepage
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
find "${pkgdir}" -name '*.a' -delete
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,20 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -45,7 +45,7 @@ ifneq ($(filter $(shell uname),FreeBSD NetBSD DragonFly),)
|
||||
PCLIBDIR := $(PREFIX)/libdata/pkgconfig
|
||||
endif
|
||||
|
||||
-all: libtree-sitter.a libtree-sitter.$(SOEXT) tree-sitter.pc
|
||||
+all: libtree-sitter.$(SOEXT) tree-sitter.pc
|
||||
|
||||
libtree-sitter.a: $(OBJ)
|
||||
$(AR) $(ARFLAGS) $@ $^
|
||||
@@ -69,7 +69,6 @@ clean:
|
||||
install: all
|
||||
install -d '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter '$(DESTDIR)$(PCLIBDIR)' '$(DESTDIR)$(LIBDIR)'
|
||||
install -m644 lib/include/tree_sitter/api.h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/api.h
|
||||
install -m644 tree-sitter.pc '$(DESTDIR)$(PCLIBDIR)'/tree-sitter.pc
|
||||
- install -m644 libtree-sitter.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a
|
||||
install -m755 libtree-sitter.$(SOEXT) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER)
|
||||
ln -sf libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER_MAJOR)
|
||||
ln -sf libtree-sitter.$(SOEXTVER_MAJOR) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXT)
|
||||
@@ -0,0 +1,40 @@
|
||||
pkgname=unibilium
|
||||
pkgver=2.1.2
|
||||
pkgdesc="A very basic terminfo library"
|
||||
homepage="https://github.com/neovim/unibilium/"
|
||||
license=("MIT" "LGPL-3+")
|
||||
depends=("perl")
|
||||
_patches=("${pkgname}-2.1.2-no-compress-man.patch")
|
||||
_path_sums=("6bfbd322f54ffe2daec7cefba167de55b2085923cebb531e7803a8753f57437acfab2bb77fd9c956cd3da3be41e6af2e66acd6281b81bbb23c6045e3863cc90c")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/neovim/${pkgname}/archive/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("8bc50b3662fcb1b52055fed028926d8c296169b6b1cfefef9bb37a435321ee6e005c4166c1e68c2959e5f6d4ffe8f44d8ea87d6dcc967176d473ae918ff3018f"
|
||||
"${_path_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --disable-static
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -56,7 +56,7 @@ OBJECTS=unibilium.lo uninames.lo uniutil.lo
|
||||
LIBRARY=libunibilium.la
|
||||
|
||||
PODS=$(wildcard doc/*.pod)
|
||||
-MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3.gz)))
|
||||
+MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3)))
|
||||
|
||||
TOOLS=$(wildcard tools/*.c)
|
||||
|
||||
@@ -121,8 +121,8 @@ install-man: build-man
|
||||
.PHONY: build-man
|
||||
build-man: $(MANPAGES)
|
||||
|
||||
-man/%.3.gz: doc/%.pod
|
||||
- $(POD2MAN) $(POD2MAN_OPTS) $< | gzip > $@
|
||||
+man/%.3: doc/%.pod
|
||||
+ $(POD2MAN) $(POD2MAN_OPTS) $< > $@
|
||||
|
||||
|
||||
# Regenerate static test files, based on existing terminfo entries.
|
||||
@@ -0,0 +1,48 @@
|
||||
pkgname=lpeg
|
||||
pkgver=1.1.0
|
||||
pkgdesc="Parsing Expression Grammars for Lua"
|
||||
homepage="https://www.inf.puc-rio.br/~roberto/lpeg/"
|
||||
license=("MIT")
|
||||
depends=("luajit" "unzip")
|
||||
_patches=("${pkgname}-1.1.0-makefile.patch")
|
||||
_patch_sums=("eee0564a743957938a5d9faec71f00afed1faaa13704c421d60fa0bb34d1ea581df20390afe786641351687c917a5d867a933ba7ff3703ac328b45fb664f3433")
|
||||
sources=("${pkgname}-${pkgver}.zip"
|
||||
${_patches[@]}
|
||||
)
|
||||
urls=("https://luarocks.org/manifests/gvvaughan/${pkgname}-${pkgver}-1.src.rock"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("5be6d3d9608881d044185e4e9cb5a7577d94b82276f4273f5dda7e2da93e13b926eaced9fc577dd83a4af231224c85a0336ddb920d94fbb334f8f55f7f21f8b4"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
unzip -q ${distdir}/${sources[0]}
|
||||
tar -xf ${pkgname}-${pkgver}.tar.gz --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local luadir
|
||||
luadir="$(
|
||||
pkg-config --cflags luajit 2>/dev/null \
|
||||
| tr ' ' '\n' \
|
||||
| sed -n 's/^-I//p' \
|
||||
| head -n1
|
||||
)"
|
||||
|
||||
if [[ -z "${luadir}" ]]; then
|
||||
leaf_error "cannot find luajit include dir"
|
||||
fi
|
||||
|
||||
make LUADIR="${luadir}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dm755 lpeg.so "${pkgdir}/usr/lib/lua/5.1/lpeg.so"
|
||||
install -Dm644 re.lua "${pkgdir}/usr/share/lua/5.1/re.lua"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,31 @@
|
||||
Respect user CFLAGS and LDFLAGS.
|
||||
|
||||
--- lpeg-1.1.0/makefile
|
||||
+++ lpeg-1.1.0/makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
LIBNAME = lpeg
|
||||
LUADIR = ../lua/
|
||||
|
||||
-COPT = -O2 -DNDEBUG
|
||||
+COPT = -DNDEBUG
|
||||
# COPT = -O0 -DLPEG_DEBUG -g
|
||||
|
||||
CWARNS = -Wall -Wextra -pedantic \
|
||||
@@ -22,7 +22,7 @@
|
||||
# -Wunreachable-code \
|
||||
|
||||
|
||||
-CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
|
||||
+CFLAGS += $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
|
||||
CC = gcc
|
||||
|
||||
FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
|
||||
@@ -36,7 +36,7 @@
|
||||
$(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
|
||||
|
||||
lpeg.so: $(FILES)
|
||||
- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
|
||||
+ env $(CC) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so
|
||||
|
||||
$(FILES): makefile
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
pkgname=luv
|
||||
pkgver=1.50.0.1
|
||||
_ver=${pkgver%.*}-${pkgver##*.}
|
||||
pkgdesc="Bare libuv bindings for lua"
|
||||
homepage="https://github.com/luvit/luv"
|
||||
depends=("libuv" "luajit")
|
||||
license=("MIT" "Apache-2.0")
|
||||
_lua_compat_pv=0.10
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}-lua-compat-${_lua_compat_pv}.tar.gz"
|
||||
)
|
||||
urls=("https://github.com/luvit/${pkgname}/archive/${_ver}.tar.gz"
|
||||
"https://github.com/keplerproject/lua-compat-5.3/archive/v${_lua_compat_pv}.tar.gz"
|
||||
)
|
||||
sha512sums=("97550dfef5809bef4096ec467fa3bdd06aa96ac8df49f855d301368950a194f292d164f1510cad4a00def637560a40dcb1ce586b124ff2dd5c8ad2d413bf4b29"
|
||||
"f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
tar -xf ${distdir}/${sources[1]}
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local lua_compat_dir="${srcdir}/lua-compat-5.3-${_lua_compat_pv}"
|
||||
local cmake_args=(
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DBUILD_MODULE=OFF
|
||||
-DLUA_BUILD_TYPE=System
|
||||
-DLUA_COMPAT53_DIR="${lua_compat_dir}"
|
||||
-DWITH_SHARED_LIBUV=ON
|
||||
-DWITH_LUA_ENGINE=LuaJIT
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
ln -s "build/libluv.so" "./luv.so"
|
||||
luajit "tests/run.lua" || true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=mpack
|
||||
_name="lib${pkgname}-lua"
|
||||
pkgver=1.0.12
|
||||
license=("MIT")
|
||||
depends=("libmpack" "luajit")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/${_name/-lua/}/${_name}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("7df730ba98c9530d948252f2efa70cb6d4f65b0fbc3443de2239145e9ce1aa12dfa8acbbfd4b87edf19a529e3595c7a8955e00235f69aa3535d353f7f9a1c7d0")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local luadir
|
||||
luadir="$(
|
||||
pkg-config --cflags luajit 2>/dev/null \
|
||||
| tr ' ' '\n' \
|
||||
| sed -n 's/^-I//p' \
|
||||
| head -n1
|
||||
)"
|
||||
local make_args=(
|
||||
"LUA_INCLUDE=-I${luadir}"
|
||||
"LUA_LIB="
|
||||
"USE_SYSTEM_MPACK=yes"
|
||||
"USE_SYSTEM_LUA=yes"
|
||||
)
|
||||
make "${make_args[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local installdir="/usr/lib/lua/5.1"
|
||||
local make_args=(
|
||||
"DESTDIR=${pkgdir}"
|
||||
"LUA_CMOD_INSTALLDIR=${installdir}"
|
||||
"USE_SYSTEM_MPACK=yes"
|
||||
"USE_SYSTEM_LUA=yes"
|
||||
)
|
||||
make "${make_args[@]}" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname=blueprint-compiler
|
||||
pkgver=0.18.0
|
||||
pkgdesc="Compiler for Blueprint, a markup language for GTK user interfaces"
|
||||
homepage="https://gnome.pages.gitlab.gnome.org/blueprint-compiler/ https://gitlab.gnome.org/GNOME/blueprint-compiler/"
|
||||
license=("LGPL-3+")
|
||||
depends=("dev-python/pygobject:3")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("0f15a0e997ec8edced82053f345abbfa4a77ca77dd5976d39e135c3b8af137f712ce2cb5b33abba7450ff440fb48dcb136186e2e0b7d54d0393d5778e8b19142")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D docs=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir" --no-rebuild
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,48 @@
|
||||
pkgname=itstool
|
||||
pkgver=2.0.7
|
||||
pkgdesc="Translation tool for XML documents that uses gettext files and ITS rules"
|
||||
homepage="https://itstool.org/"
|
||||
license=("GPL-3+")
|
||||
depends=("dev-python/lxml")
|
||||
_patches=("itstool-2.0.7-raw-string-testrunner.patch")
|
||||
_patch_sums=("9864daaf40dcbb3a5074ea73d98275a1c5590044b4c1e74f980a78978a706153d5c70c347da5424757e877b0cc49307804a228404daf8f276568e214436c5610")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}-2.0.7-switch-to-lxml.patch.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
_commit="19f9580f27aa261ea383b395fdef7e153f3f9e6d"
|
||||
urls=("https://github.com/itstool/itstool/archive/${_commit}.tar.gz"
|
||||
"https://dev.gentoo.org/~sam/distfiles/dev-util/itstool/${sources[1]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("52ec7c97891bb55628a34141e39029003fa09bb3f79baeeaaf782710bc14e6e4eda4c5ca360728db68928cd27f331ff0e0f6ee8a954ad723e4619f0d2193e50c"
|
||||
"40e69baa1d644aa8bdf305fee396ee4bd15203f2d55aa3d7ece088a176a35624711eaa31ef05d6f3e6a0bfdd1ed39ab41911fc968099fe34802afdc4142b200a"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
cp -v ${distdir}/${sources[1]} ./
|
||||
xz -d ${sources[1]}
|
||||
patch -p1 -i ${sources[1]%.xz}
|
||||
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,15 @@
|
||||
Followup fix to:
|
||||
https://github.com/itstool/itstool/commit/32c7d07664dc37765100285d1202d488cd6a27e8
|
||||
but for the test runner, which we can now run.
|
||||
|
||||
--- a/tests/run_tests.py
|
||||
+++ b/tests/run_tests.py
|
||||
@@ -379,7 +379,7 @@ class ITSTestRunner(unittest.TextTestRun
|
||||
test_binary_path = os.path.join(ITSTOOL_DIR, "itstool_test")
|
||||
shutil.copy(os.path.join(ITSTOOL_DIR, "itstool.in"), test_binary_path)
|
||||
data_dir = os.path.join(ITSTOOL_DIR, "its")
|
||||
- call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', '\/'), test_binary_path), shell=True)
|
||||
+ call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', r'\/'), test_binary_path), shell=True)
|
||||
|
||||
result = super(ITSTestRunner, self).run(test)
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
pkgname=tree-sitter-cli
|
||||
pkgbase=tree-sitter
|
||||
pkgver=0.25.10
|
||||
pkgdesc="Command-line tool for creating and testing tree-sitter grammars"
|
||||
homepage="https://github.com/tree-sitter/tree-sitter"
|
||||
license=("MIT")
|
||||
depends=("tree-sitter")
|
||||
sources=("${pkgbase}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/${pkgbase}/${pkgbase}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("f0465a2fabe303c1b62f1f55ed08aa57372ac11370d229adcccd99b5e8067be53e92da281cdfbcd034e2ecefb33ac90a119eeac9035670ac8fbaa4242cb87a11")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
pushd cli
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
popd
|
||||
}
|
||||
|
||||
src_build() {
|
||||
pushd cli
|
||||
cargo build --release --locked --offline
|
||||
for completion in bash fish zsh; do
|
||||
cargo run --frozen --release -- \
|
||||
complete --shell $completion > $completion-completions
|
||||
done
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dt "$pkgdir"/usr/bin target/release/$pkgbase
|
||||
install -Dm644 -t "$pkgdir"/usr/share/licenses/${pkgbase}-cli LICENSE
|
||||
|
||||
pushd cli
|
||||
install -Dm644 bash-completions "$pkgdir"/usr/share/bash-completion/completions/$pkgbase
|
||||
install -Dm644 fish-completions "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgbase.fish
|
||||
install -Dm644 zsh-completions "$pkgdir"/usr/share/zsh/site-functions/_$pkgbase
|
||||
popd
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=lazygit
|
||||
pkgver=0.58.1
|
||||
pkgdesc="Simple terminal UI for git commands"
|
||||
homepage="https://github.com/jesseduffield/lazygit"
|
||||
license=("Apache-2.0" BSD ISC MIT Unlicense)
|
||||
depends=(git)
|
||||
bdepends=(go)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/jesseduffield/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("d4802b16432b26220c3ff1576eafbca1b095a82c703e2cb46f72cea6d255caa52a9c428aa98c5ff794e56fdeac1f5fc85f491717b9caf28d8db24d6c50eb103b")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -x -v"
|
||||
|
||||
go build \
|
||||
-ldflags "\
|
||||
-linkmode external \
|
||||
-extldflags '${LDFLAGS}' \
|
||||
-X main.date=$(date --date=@${SOURCE_DATE_EPOCH} -u +%Y-%m-%dT%H:%M:%SZ) \
|
||||
-X main.buildSource=binaryRelease \
|
||||
-X main.version=${pkgver} \
|
||||
-X main.commit=v${pkgver} \
|
||||
"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dm 755 lazygit -t "${pkgdir}/usr/bin"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=grim
|
||||
pkgver=1.5.0
|
||||
pkgdesc="Grab images from a Wayland compositor"
|
||||
homepage="https://gitlab.freedesktop.org/emersion/grim"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
wayland
|
||||
libpng
|
||||
pixman
|
||||
wayland-protocols
|
||||
)
|
||||
bdepends=(wayland-scanner)
|
||||
sources=("${pkgname}-v${pkgver}.tar.bz2")
|
||||
urls=("https://gitlab.freedesktop.org/emersion/grim/-/archive/v${pkgver}/${sources[0]}")
|
||||
sha512sums=("5eccc172a4d21be7e541f201a86909647d54533749c6dc679b8e68383a310a832f42cf8b5096ef61838c9c7b3213b32b4f54103a67b238ede718b4be834a0aed")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D jpeg=disabled
|
||||
-D man-pages=disabled
|
||||
-D bash-completions=false
|
||||
-D fish-completions=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
install -vDm644 contrib/completions/bash/grim.bash "${pkgdir}"/usr/share/bash-completion/completions/grim
|
||||
install -vDm644 contrib/completions/fish/grim.fish "${pkgdir}"/usr/share/fish/vendor_completions.d/grim.fish
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=slurp
|
||||
pkgver=1.5.0
|
||||
pkgdesc="Select a region in a Wayland compositor and print it to the standard output"
|
||||
homepage="https://github.com/emersion/slurp"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
wayland-protocols
|
||||
wayland
|
||||
cairo
|
||||
libxkbcommon
|
||||
)
|
||||
bdepends=(wayland-scanner)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/emersion/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("77c4efdaa4ac411f43c598e5d654bcf61f969a5e403df6110757a7b217e02d55d0ba797729e42f8219d3bba79f58bcb36746799de765d3b25f301bf9ac3c1888")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D man-pages=disabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=swappy
|
||||
pkgver=1.5.1
|
||||
pkgdesc="A Wayland native snapshot and editor tool, inspired by Snappy on macOS"
|
||||
gomepage="https://github.com/jtheoof/swappy"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
glib:2
|
||||
cairo
|
||||
gdk-pixbuf:2
|
||||
pango
|
||||
"fontawesome[otf]"
|
||||
xorg-proto
|
||||
)
|
||||
bdepends=(scdoc)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/jtheoof/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("688ad9006965d6a3f9d2997335bc3e8172e4f6f53551bb92603cdc1f14138c25f9f7d28a87aa1cbcefc94f5da1701443a2ddf0e883b648ecc5a0b0ca28588217")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D man-pages=enabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=swaync
|
||||
_name="SwayNotificationCenter"
|
||||
pkgver=0.12.3
|
||||
pkgdesc="A simple notification daemon with a GTK gui for notifications and control center"
|
||||
homepage="https://github.com/ErikReider/SwayNotificationCenter"
|
||||
license=("GPL-3")
|
||||
depends=(sassc glib:2 gobject-introspection granite json-glib libgee gtk4-layer-shell gtk:4 libadwaita libhandy libpulse dbus gdk-pixbuf:2)
|
||||
bdepends=(blueprint-compiler)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ErikReider/${_name}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("847fa8b46f432d40f4c1c7a8559d5b3f5b431784e3dc7afb90edb57533c6662116af2d78965b2e4b9f635432b108e3a1ad518d739c6fa13ee317b0d80bcbb8cf")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D pulse-audio=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=swayosd
|
||||
pkgver=0.2.1
|
||||
pkgdesc="GTK based on screen display for keyboard shortcuts like caps-lock and volume"
|
||||
homepage="https://github.com/ErikReider/SwayOSD"
|
||||
license=("GPL-3")
|
||||
depends=(
|
||||
glib:2
|
||||
libevdev
|
||||
libinput
|
||||
gtk4-layer-shell
|
||||
libpulse
|
||||
cairo
|
||||
gdk-pixbuf:2
|
||||
gtk+:3
|
||||
pango
|
||||
)
|
||||
bdepends=(ninja sassc)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ErikReider/SwayOSD/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("473ab6660ad1ef8d3c7fbcad611f08dcc72e81b0e6df2714bcb2c2644361f8cea82efddd9597197e85520132ddd5e7a5c28b936170a2477208f2ad2e608c4063")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=wl-clipboard
|
||||
pkgver=2.2.1
|
||||
pkgdesc="Wayland clipboard utilities"
|
||||
homepage="https://github.com/bugaevc/wl-clipboard"
|
||||
license=("GPL-3")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/bugaevc/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("fdda519df42e1dbfb112ab7d8195a0f36cf5cf18fffffa8f32ac4688a08009e206b96a169da641f909c9acf244eb6a5201811842b4d3111e1ccdb1ce8fb4db43")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D fishcompletiondir="/usr/share/fish/vendor_completions.d"
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=libadwaita
|
||||
pkgver=1.7.7
|
||||
pkgdesc="Building blocks for modern GNOME applications"
|
||||
homepage="https://gnome.pages.gitlab.gnome.org/libadwaita/ https://gitlab.gnome.org/GNOME/libadwaita"
|
||||
license=("LGPL-2.1+")
|
||||
depends=(glib:2 gtk:4 appstream fribidi gobject-introspection)
|
||||
bdepends=(vala gettext sassc)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("af59e6813794ef2ac1aa22fa4d295caacbe3b58b6398b4c1d6ab14f454d308a4040ad286132f3731e3706e1dfc036df50d15e09cd748f975724a9226b9f74d52")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nofallback
|
||||
-D python.bytecompile=1
|
||||
-D profiling=false
|
||||
-D introspection=enabled
|
||||
-D vapi=true
|
||||
-D documentation=false
|
||||
-D tests=false
|
||||
-D examples=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=libhandy
|
||||
pkgver=1.8.3
|
||||
pkgdesc="Building blocks for modern adaptive GNOME apps"
|
||||
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
|
||||
license=("LGPL-2.1+")
|
||||
slot="1"
|
||||
depends=(glib:2 gtk+:3 gobject-introspection xorg-proto)
|
||||
bdepends=(libxml:2 gettext)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("1e0ae363d2a4993c9667243715256b27cb0ecb898fa8f4ea1a914fbeb36c0a9c26447f8f13f92f5a855e45ada49f732adeb30b88d81f3ee5f984bca48db3ae65")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D profiling=false
|
||||
-D introspection=enabled
|
||||
-D vapi=true
|
||||
-D gtk_doc=false
|
||||
-D tests=false
|
||||
-D examples=false
|
||||
-D glade_catalog=disabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,198 @@
|
||||
pkgname=baselayout
|
||||
pkgver=0.1-r1
|
||||
pkgdesc="basic layout of filesystem"
|
||||
license=("GPL")
|
||||
sources=()
|
||||
urls=()
|
||||
sha512sums=()
|
||||
|
||||
src_install() {
|
||||
mkdir -pv "${pkgdir}"/{boot,home,mnt,opt,srv}
|
||||
mkdir -pv "${pkgdir}"/etc/{opt,sysconfig}
|
||||
mkdir -pv "${pkgdir}"/lib/firmware
|
||||
mkdir -pv "${pkgdir}"/usr/{,local/}{include,src}
|
||||
mkdir -pv "${pkgdir}"/usr/lib/locale
|
||||
mkdir -pv "${pkgdir}"/usr/local/{bin,lib,sbin}
|
||||
mkdir -pv "${pkgdir}"/usr/{,local/}share/{color,dict,doc,info,locale,man}
|
||||
mkdir -pv "${pkgdir}"/usr/{,local/}share/{misc,terminfo,zoneinfo}
|
||||
mkdir -pv "${pkgdir}"/usr/{,local/}share/man/man{1..8}
|
||||
mkdir -pv "${pkgdir}"/var/{cache,local,log,mail,opt,spool}
|
||||
mkdir -pv "${pkgdir}"/var/lib/{color,misc,locate}
|
||||
|
||||
ln -svf ../run "${pkgdir}"/var/run
|
||||
ln -svf ../../run/lock "${pkgdir}"/var/lock
|
||||
|
||||
install -dv -m 0750 "${pkgdir}"/root
|
||||
install -dv -m 1777 "${pkgdir}"/tmp "${pkgdir}"/var/tmp
|
||||
|
||||
install -vd "${pkgdir}/etc"
|
||||
ln -sv ../proc/self/mounts "${pkgdir}"/etc/mtab
|
||||
cat > "${pkgdir}"/etc/hosts << EOF
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
EOF
|
||||
cat > "${pkgdir}"/etc/passwd << "EOF"
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
bin:x:1:1:bin:/dev/null:/usr/bin/false
|
||||
daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false
|
||||
messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false
|
||||
systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/usr/bin/false
|
||||
systemd-journal-remote:x:74:74:systemd Journal Remote:/:/usr/bin/false
|
||||
systemd-journal-upload:x:75:75:systemd Journal Upload:/:/usr/bin/false
|
||||
systemd-network:x:76:76:systemd Network Management:/:/usr/bin/false
|
||||
systemd-resolve:x:77:77:systemd Resolver:/:/usr/bin/false
|
||||
systemd-timesync:x:78:78:systemd Time Synchronization:/:/usr/bin/false
|
||||
systemd-coredump:x:79:79:systemd Core Dumper:/:/usr/bin/false
|
||||
uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false
|
||||
systemd-oom:x:81:81:systemd Out Of Memory Daemon:/:/usr/bin/false
|
||||
nobody:x:65534:65534:Unprivileged User:/dev/null:/usr/bin/false
|
||||
leaf:x:101:101::/var/lib/leaf/home:/bin/bash
|
||||
EOF
|
||||
cat > "${pkgdir}"/etc/group << "EOF"
|
||||
root:x:0:
|
||||
bin:x:1:daemon
|
||||
sys:x:2:
|
||||
kmem:x:3:
|
||||
tape:x:4:
|
||||
tty:x:5:
|
||||
daemon:x:6:
|
||||
floppy:x:7:
|
||||
disk:x:8:
|
||||
lp:x:9:
|
||||
dialout:x:10:
|
||||
audio:x:11:
|
||||
video:x:12:
|
||||
utmp:x:13:
|
||||
cdrom:x:15:
|
||||
adm:x:16:
|
||||
messagebus:x:18:
|
||||
systemd-journal:x:23:
|
||||
input:x:24:
|
||||
mail:x:34:
|
||||
kvm:x:61:
|
||||
systemd-journal-gateway:x:73:
|
||||
systemd-journal-remote:x:74:
|
||||
systemd-journal-upload:x:75:
|
||||
systemd-network:x:76:
|
||||
systemd-resolve:x:77:
|
||||
systemd-timesync:x:78:
|
||||
systemd-coredump:x:79:
|
||||
uuidd:x:80:
|
||||
systemd-oom:x:81:
|
||||
wheel:x:97:
|
||||
users:x:999:
|
||||
nogroup:x:65534:
|
||||
leaf:x:101:
|
||||
EOF
|
||||
install -vdm700 "${pkgdir}"/var/lib/leaf/home
|
||||
chown -R 101:101 "${pkgdir}"/var/lib/leaf/home
|
||||
|
||||
install -vdm755 "${pkgdir}"/var/log
|
||||
touch "${pkgdir}"/var/log/{btmp,lastlog,faillog,wtmp}
|
||||
chgrp -v 13 "${pkgdir}"/var/log/lastlog
|
||||
chmod -v 664 "${pkgdir}"/var/log/lastlog
|
||||
chmod -v 600 "${pkgdir}"/var/log/btmp
|
||||
|
||||
cat > "${pkgdir}"/etc/inputrc << "EOF"
|
||||
# Begin /etc/inputrc
|
||||
# Modified by Chris Lynn <roryo@roryo.dynup.net>
|
||||
|
||||
# Allow the command prompt to wrap to the next line
|
||||
set horizontal-scroll-mode Off
|
||||
|
||||
# Enable 8-bit input
|
||||
set meta-flag On
|
||||
set input-meta On
|
||||
|
||||
# Turns off 8th bit stripping
|
||||
set convert-meta Off
|
||||
|
||||
# Keep the 8th bit for display
|
||||
set output-meta On
|
||||
|
||||
# none, visible or audible
|
||||
set bell-style none
|
||||
|
||||
# All of the following map the escape sequence of the value
|
||||
# contained in the 1st argument to the readline specific functions
|
||||
"\eOd": backward-word
|
||||
"\eOc": forward-word
|
||||
|
||||
# for linux console
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
"\e[5~": beginning-of-history
|
||||
"\e[6~": end-of-history
|
||||
"\e[3~": delete-char
|
||||
"\e[2~": quoted-insert
|
||||
|
||||
# for xterm
|
||||
"\eOH": beginning-of-line
|
||||
"\eOF": end-of-line
|
||||
|
||||
# for Konsole
|
||||
"\e[H": beginning-of-line
|
||||
"\e[F": end-of-line
|
||||
|
||||
# End /etc/inputrc
|
||||
EOF
|
||||
|
||||
echo 12.4-systemd > "${pkgdir}"/etc/lfs-release
|
||||
cat > "${pkgdir}"/etc/lsb-release << "EOF"
|
||||
DISTRIB_ID="Linux From Scratch"
|
||||
DISTRIB_RELEASE="12.4-systemd"
|
||||
DISTRIB_CODENAME="Manifold"
|
||||
DISTRIB_DESCRIPTION="Linux From Scratch"
|
||||
EOF
|
||||
cat > "${pkgdir}"/etc/os-release << "EOF"
|
||||
NAME="Linux From Scratch"
|
||||
VERSION="12.4-systemd"
|
||||
ID=lfs
|
||||
PRETTY_NAME="Linux From Scratch 12.4-systemd"
|
||||
VERSION_CODENAME="Manifold"
|
||||
HOME_URL="https://www.linuxfromscratch.org/lfs/"
|
||||
RELEASE_TYPE="stable"
|
||||
EOF
|
||||
|
||||
cat > "${pkgdir}"/etc/profile << "EOF"
|
||||
# Begin /etc/profile
|
||||
|
||||
if [[ "$TERM" = linux ]]; then
|
||||
export LANG=C.UTF-8
|
||||
else
|
||||
[ -f "/etc/locale.conf" ] && source /etc/locale.conf
|
||||
|
||||
for i in $(locale); do
|
||||
key=${i%=*}
|
||||
if [[ -v $key ]]; then
|
||||
export $key
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -e /etc/profile.env ] ; then
|
||||
. /etc/profile.env
|
||||
fi
|
||||
# You should override these in your ~/.bashrc (or equivalent) for per-user
|
||||
# settings. For system defaults, you can add a new file in /etc/profile.d/.
|
||||
export EDITOR=${EDITOR:-/bin/vim}
|
||||
export PAGER=${PAGER:-/usr/bin/less}
|
||||
|
||||
# End /etc/profile
|
||||
EOF
|
||||
install -vdm755 "${pkgdir}"/etc/profiles.d
|
||||
|
||||
install -vdm755 "${pkgdir}"/etc/env.d
|
||||
cat > "${pkgdir}"/etc/env.d/50baselayout << "EOF"
|
||||
# /etc/env.d/50baselayout
|
||||
# Do not edit this file
|
||||
|
||||
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
|
||||
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
|
||||
MANPATH="/usr/local/share/man:/usr/share/man"
|
||||
INFOPATH="/usr/share/info"
|
||||
LDPATH='/usr/lib64:/usr/local/lib64:/usr/lib:/usr/local/lib'
|
||||
EOF
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -11,10 +11,10 @@ md5sums=("dee5b4267e0305a99a3c9d6131f45759")
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
mkdir -v build
|
||||
cd build
|
||||
}
|
||||
|
||||
src_build() {
|
||||
pushd build
|
||||
../configure --prefix=/usr \
|
||||
--sysconfdir="${pkgdir}"/etc \
|
||||
--enable-gold \
|
||||
@@ -27,17 +27,25 @@ src_build() {
|
||||
--with-system-zlib \
|
||||
--enable-default-hash-style=gnu
|
||||
make tooldir=/usr
|
||||
popd
|
||||
}
|
||||
|
||||
src_check() {
|
||||
pushd build
|
||||
make -k CFLAGS_FOR_TARGET="-O2 -g" \
|
||||
CXXFLAGS="-O2 -no-pie -fno-PIC" \
|
||||
CFLAGS="-O2 -no-pie" \
|
||||
LDFLAGS="" \
|
||||
check
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build
|
||||
make prefix="${pkgdir}"/usr tooldir="${pkgdir}"/usr install
|
||||
rm -fv "${pkgdir}"/usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a
|
||||
find "${pkgdir}" -type f -name "*.a" -delete
|
||||
popd
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -6,13 +6,13 @@ homepage="https://www.gnu.org/software/bison/bison.html"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"bison-3.8.2-gcc15-glibcxx-assertions.patch")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}"
|
||||
"https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-devel/bison/files/${sources[1]}")
|
||||
"${sources[1]}")
|
||||
md5sums=("c28f119f405a2304ff0a7ccdcc629713"
|
||||
"c82e47067aa2fb6f15ab930245b7bbb2")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i ${distdir}/${sources[1]}
|
||||
patch -Np1 -i ${filedir}/${sources[1]}
|
||||
}
|
||||
|
||||
src_build() {
|
||||
@@ -27,3 +27,5 @@ src_check() {
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
https://bugs.gentoo.org/935754
|
||||
https://lists.gnu.org/archive/html/bison-patches/2024-07/msg00000.html
|
||||
|
||||
* data/skeletons/glr2.cc (yyundeleteLastStack): Recover
|
||||
yylookaheadNeeds stack entry also, to prevent desyncing the sizes
|
||||
of yystates and yylookaheadNeeds.
|
||||
(class glr_state_set): New field yylookaheadNeedLastDeleted,
|
||||
tracks lookahead need of last deleted state.
|
||||
(yymarkStackDeleted): Save yylookaheadNeeds also.
|
||||
---
|
||||
Hi!
|
||||
|
||||
GCC 15 has added bounds-checks to vector<bool> when assertions are
|
||||
enabled. This has caught a bug in Bison. See bug referenced above.
|
||||
|
||||
Now, WRT the fix: I am not sure of its correctness, but it appears to
|
||||
pass tests and everything seems to indicate that the presumption it is
|
||||
based on is correct. That presumption is that the two stacks mentioned
|
||||
above (yylookaheadNeeds and yystates) ought to be the same size. I
|
||||
inferred this because all other locations that alter the size of the two
|
||||
vectors appear to do so in lock-step.
|
||||
|
||||
TIA, have a lovely day.
|
||||
|
||||
data/skeletons/glr2.cc | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc
|
||||
index 970ccfdf..8b962d6f 100644
|
||||
--- a/data/skeletons/glr2.cc
|
||||
+++ b/data/skeletons/glr2.cc
|
||||
@@ -1080,7 +1080,10 @@ namespace
|
||||
{
|
||||
size_t k = yyk.uget ();
|
||||
if (yystates[k] != YY_NULLPTR)
|
||||
- yylastDeleted = yystates[k];
|
||||
+ {
|
||||
+ yylastDeleted = yystates[k];
|
||||
+ yylookaheadNeedLastDeleted = yylookaheadNeeds[k];
|
||||
+ }
|
||||
yystates[k] = YY_NULLPTR;
|
||||
}
|
||||
|
||||
@@ -1093,6 +1096,7 @@ namespace
|
||||
if (yylastDeleted == YY_NULLPTR || !yystates.empty ())
|
||||
return;
|
||||
yystates.push_back (yylastDeleted);
|
||||
+ yylookaheadNeeds.push_back (yylookaheadNeedLastDeleted);
|
||||
YYCDEBUG << "Restoring last deleted stack as stack #0.\n";
|
||||
clearLastDeleted ();
|
||||
}
|
||||
@@ -1102,6 +1106,7 @@ namespace
|
||||
void
|
||||
yyremoveDeletes ()
|
||||
{
|
||||
+ YYASSERT(yystates.size () == yylookaheadNeeds.size ());
|
||||
size_t newsize = yystates.size ();
|
||||
/* j is the number of live stacks we have seen. */
|
||||
for (size_t i = 0, j = 0; j < newsize; ++i)
|
||||
@@ -1160,6 +1165,7 @@ namespace
|
||||
|
||||
/** The last stack we invalidated. */
|
||||
glr_state* yylastDeleted;
|
||||
+ bool yylookaheadNeedLastDeleted;
|
||||
}; // class glr_state_set
|
||||
} // namespace
|
||||
|
||||
--
|
||||
2.45.2
|
||||
@@ -11,21 +11,25 @@ md5sums=("68c5208c58236eba447d7d6d1326b821")
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
mkdir -v build
|
||||
cd build
|
||||
}
|
||||
|
||||
src_build() {
|
||||
cd build
|
||||
../configure --prefix=/usr
|
||||
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
||||
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cd build
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -v -dm755 "${pkgdir}/usr/share/doc/dejagnu-${pkgver}"
|
||||
install -v -m644 doc/dejagnu.{html,txt} "${pkgdir}/usr/share/doc/dejagnu-${pkgver}"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
+15
-8
@@ -1,15 +1,16 @@
|
||||
pkgname="glibc"
|
||||
pkgver=2.42
|
||||
_kernel_min_ver=6.12
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"${pkgname}-${pkgver}-fhs-1.patch"
|
||||
"${pkgname}-${pkgver}/nsswitch.conf"
|
||||
"${pkgname}-${pkgver}/ld.so.conf"
|
||||
"${pkgname}-${pkgver}/tzdata2025b.tar.gz"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"tzdata2025b.tar.gz"
|
||||
)
|
||||
urls=("https://ftp.gnu.org/gnu/glibc/${sources[0]}"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.4/${pkgname}-${pkgver}-fhs-1.patch"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs/${pkgname}-${pkgver}/nsswitch.conf"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs/${pkgname}-${pkgver}/ld.so.conf"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"https://www.iana.org/time-zones/repository/releases/tzdata2025b.tar.gz"
|
||||
)
|
||||
md5sums=("23c6f5a27932b435cae94e087cb8b1f5"
|
||||
@@ -37,7 +38,7 @@ src_build() {
|
||||
echo "rootsbindir=/usr/sbin" > configparms
|
||||
../configure --prefix=/usr \
|
||||
--disable-werror \
|
||||
--enable-kernel=5.4 \
|
||||
--enable-kernel=${_kernel_min_ver} \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib
|
||||
@@ -51,6 +52,7 @@ _skip_test() {
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cd build
|
||||
_skip_test tst-lchmod io/Makefile
|
||||
|
||||
make check
|
||||
@@ -64,7 +66,7 @@ src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
sed '/RTLDLIST=/s@/usr@@g' -i "${pkgdir}/usr/bin/ldd"
|
||||
|
||||
install -m644 "${distdir}/${sources[2]}" "${pkgdir}/etc/nsswitch.conf"
|
||||
install -m644 "${filedir}/${sources[2]}" "${pkgdir}/etc/nsswitch.conf"
|
||||
|
||||
tar -xf "${distdir}/${sources[4]}"
|
||||
ZONEINFO=${pkgdir}/usr/share/zoneinfo
|
||||
@@ -79,7 +81,10 @@ src_install() {
|
||||
zic -d $ZONEINFO -p America/New_York
|
||||
unset ZONEINFO
|
||||
|
||||
install -m644 "${distdir}/${sources[3]}" "${pkgdir}/etc/ld.so.conf"
|
||||
install -m644 "${filedir}/${sources[3]}" "${pkgdir}/etc/ld.so.conf"
|
||||
rm -f "${pkgdir}/etc/ld.so.cache"
|
||||
|
||||
install -vd "${pkgdir}/usr/lib/locale/"
|
||||
}
|
||||
|
||||
src_preinstall() {
|
||||
@@ -124,3 +129,5 @@ src_postinstall() {
|
||||
localedef -i zh_TW -f UTF-8 zh_TW.UTF-8
|
||||
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -2,9 +2,9 @@ pkgname="psmisc"
|
||||
pkgver="23.7"
|
||||
pkgdesc='Miscellaneous procfs tools'
|
||||
homepage="https://gitlab.com/psmisc/psmisc"
|
||||
sources="${pkgname}-${pkgver}.tar.xz"
|
||||
urls="https://sourceforge.net/projects/psmisc/files/${pkgname}/${sources[0]}"
|
||||
md5sums="53eae841735189a896d614cba440eb10"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://sourceforge.net/projects/psmisc/files/${pkgname}/${sources[0]}")
|
||||
md5sums=("53eae841735189a896d614cba440eb10")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
@@ -22,3 +22,5 @@ src_check() {
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -19,6 +19,8 @@ src_build() {
|
||||
|
||||
src_check() {
|
||||
chown -R leaf .
|
||||
chown -R leaf "${TMPDIR}"
|
||||
chown -R leaf "${HOME}"
|
||||
su leaf -c "PATH=$PATH make check"
|
||||
}
|
||||
|
||||
@@ -27,3 +29,5 @@ src_install() {
|
||||
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
install -m644 doc/sed.html "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
pkgname=fontawesome
|
||||
pkgver=6.5.1
|
||||
pkgdesc="The iconic font"
|
||||
homepage="https://fontawesome.com"
|
||||
license=("CC-BY-4.0" "OFL-1.1")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/FortAwesome/Font-Awesome/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("da8b9c42241e370330d01d73a8cd279bc16589bf94a6edbbd4b18924341d3db7e03258170cae31c43ee73285373544907ca31a27dbe71765cd7637531e80d418")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dvm644 otfs/*.otf -t "${pkgdir}/usr/share/fonts/${pkgname}"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user