Compare commits
124
Commits
d7f2f91ec6
..
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 | ||
|
|
56a25f0fdb | ||
|
|
370ff89030 | ||
|
|
539638b0f9 | ||
|
|
fcd540a58d | ||
|
|
b050359048 | ||
|
|
3be7eb7483 | ||
|
|
7d6f7bd91c | ||
|
|
99cd254663 | ||
|
|
4f7b401574 | ||
|
|
f83b3429c7 | ||
|
|
a8281b298b | ||
|
|
fe7bc6addc | ||
|
|
762b867afe | ||
|
|
3e5349a1ca | ||
|
|
83cb8020be | ||
|
|
dea6b05db9 | ||
|
|
838817db4c | ||
|
|
919a7bee27 | ||
|
|
e153b5137b | ||
|
|
d83aa24c91 | ||
|
|
51fe871ed4 | ||
|
|
de06823946 | ||
|
|
84696e006e | ||
|
|
49541a3013 | ||
|
|
e5da6017c3 | ||
|
|
4d6bd467a3 | ||
|
|
e8b5cb7153 | ||
|
|
7d9c092c2e | ||
|
|
4645511b74 | ||
|
|
02ceb5af37 | ||
|
|
59353fafd2 | ||
|
|
d8622560aa | ||
|
|
b83a66f0e4 | ||
|
|
9fc72b7db7 | ||
|
|
675df602f7 | ||
|
|
ac0ae74d17 | ||
|
|
cdf0887d99 | ||
|
|
b2aa94d461 | ||
|
|
45226219b8 | ||
|
|
e296bdbe87 | ||
|
|
0a9e2599d6 | ||
|
|
9a66b061ae | ||
|
|
e374f699f8 | ||
|
|
5de9145dc3 | ||
|
|
950f619342 | ||
|
|
684c63a337 | ||
|
|
2cff7f2ad2 | ||
|
|
4327854e50 | ||
|
|
8e77349d46 | ||
|
|
1d588b2f48 | ||
|
|
7e453a7f16 |
@@ -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,35 @@
|
||||
pkgname=iso-codes
|
||||
pkgver=4.18.0
|
||||
pkgdesc='Lists of the country, language, and currency names'
|
||||
homepage='https://salsa.debian.org/iso-codes-team/iso-codes'
|
||||
arch=(any)
|
||||
license=(LGPL-2.1-only)
|
||||
makedepends=(meson python)
|
||||
sources=("${pkgname}-v${pkgver}.tar.gz")
|
||||
urls=("https://salsa.debian.org/${pkgname}-team/${pkgname}/-/archive/v${pkgver}/${sources[0]}")
|
||||
sha512sums=("4f9766b3e73a155df3213d5684f0b4c2aefe3efcdc30b2a969913a90deb73e1cbd32a63c2f00c736517c1feed790944d12155410d3c4d381749c39ecd1f71f96")
|
||||
options=('!strip')
|
||||
|
||||
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
|
||||
# )
|
||||
# meson setup build "${meson_args[@]}"
|
||||
# meson compile -C build
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# meson install -C build --destdir "$pkgdir"
|
||||
make install LN_S='ln -sfn' DESTDIR="${pkgdir}"
|
||||
}
|
||||
|
||||
# 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,33 @@
|
||||
pkgname=atkmm
|
||||
pkgver=2.28.4
|
||||
_ver=${pkgver%.*}
|
||||
slot="0"
|
||||
pkgdesc="C++ interface for the ATK library"
|
||||
homepage="https://gtkmm.gnome.org/en/index.html"
|
||||
licenses=("LGPL-2.1+")
|
||||
depends=(glibmm:2 at-spi2-core libsigc++:2)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${_ver}/${sources[0]}")
|
||||
sha512sums=("30a714971234aebf06a04abeff5fc3b6951b56130aaddbd1a92856b3fb87cf9ba3c34539465b7f0905f871d763239642efe7904b24f33f11e57bf013e4bca533")
|
||||
|
||||
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 build-documentation=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,42 @@
|
||||
pkgname=cairomm
|
||||
pkgver=1.14.5
|
||||
slot="0"
|
||||
pkgdesc="C++ bindings for Cairo"
|
||||
homepage="https://www.cairographics.org/cairomm/"
|
||||
arch=(x86_64)
|
||||
license=(LGPL MPL)
|
||||
depends=(
|
||||
cairo
|
||||
libsigc++:2
|
||||
)
|
||||
makedepends=(
|
||||
meson
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.cairographics.org/releases/${sources[0]}")
|
||||
sha512sums=("19e5f84f6167c1641b27545c3af4e780b6a072513322adc6296577e2d0ebcffe933afd15c32117a203394e9f5f28734820aaf1802dfdeb35ff2a657f140570b0")
|
||||
|
||||
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 build-documentation=false
|
||||
-D build-examples=false
|
||||
-D build-tests=false
|
||||
-D boost-shared=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,46 @@
|
||||
pkgname=glibmm
|
||||
pkgver=2.66.8
|
||||
_ver=${pkgver%.*}
|
||||
pkgdesc="C++ bindings for GLib"
|
||||
homepage="https://www.gtkmm.org/"
|
||||
arch=(x86_64)
|
||||
license=(LGPL-2.1-or-later)
|
||||
depends=(
|
||||
gcc
|
||||
glib:2
|
||||
glibc
|
||||
libsigc++:2
|
||||
)
|
||||
makedepends=(
|
||||
clang
|
||||
meson
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${_ver}/${sources[0]}")
|
||||
sha512sums=("4ebf203324d3ee95c47012915efb39d4dc59eb7a6f337e7b8c7c0b3589574b07967974363931b0d4159618f88178b04715b2c359c3dc3f67a7781bfac0d9f277")
|
||||
|
||||
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 warnings=min
|
||||
-D build-deprecated-api=true
|
||||
-D build-documentation=false
|
||||
-D debug-refcounting=false
|
||||
-D build-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,50 @@
|
||||
pkgname=gtkmm
|
||||
pkgver=3.24.10
|
||||
_ver=${pkgver%.*}
|
||||
slot="3.0"
|
||||
pkgdesc="C++ bindings for GTK+ 3"
|
||||
homepage="https://www.gtkmm.org/"
|
||||
arch=(x86_64)
|
||||
license=(LGPL-2.1-or-later)
|
||||
depends=(
|
||||
atkmm:0
|
||||
cairomm:0
|
||||
gcc
|
||||
gdk-pixbuf:2
|
||||
glib:2
|
||||
glibc
|
||||
glibmm:2
|
||||
gtk+:3
|
||||
libsigc++:2
|
||||
pangomm:1.4
|
||||
libepoxy
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${_ver}/${sources[0]}")
|
||||
sha512sums=("d7478b66b94924e1457b1a6b4a46ee8027361ae1db0b3e203019957e4e591220de3a12c11d34cc5d381e707435c0cfe5eae12d620cd8db0e56a0485c39bd7abb")
|
||||
|
||||
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 build-atkmm-api=true
|
||||
-D build-demos=false
|
||||
-D build-documentation=false
|
||||
-D build-tests=false
|
||||
-D build-x11-api=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,34 @@
|
||||
pkgname=pangomm
|
||||
pkgver=2.46.4
|
||||
_ver=${pkgver%.*}
|
||||
pkgdesc="C++ interface for pango"
|
||||
homepage="https://gtkmm.gnome.org/en/index.html"
|
||||
licenses=("LGPL-2.1+")
|
||||
slot=1.4
|
||||
depends=(cairomm:0 glibmm:2 libsigc++:2 pango)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${_ver}/${sources[0]}")
|
||||
sha512sums=("e4e57b835af270af9b98ae3feb25087cb8f8ab9b0028195db3d2dbf48df360de1f92c4e7c9dfba9a80d4a6aa47234b3112eea52586328386bbc0eb0d5cc09856")
|
||||
|
||||
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 maintainer-mode=false
|
||||
-D build-documentation=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,32 @@
|
||||
pkgname=sdbus-c++
|
||||
pkgver=2.1.0
|
||||
pkgdesc="High-level C++ D-Bus library"
|
||||
homepage="https://github.com/Kistler-Group/sdbus-cpp"
|
||||
license=("LGPL-2.1+" "Nokia-Qt-LGPL-Exception-1.1")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/Kistler-Group/sdbus-cpp/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("4247d49f0d5231e2768c0c96fa9c266bbcc340292c9c3d748f9c37ff992b82301faea798300f916e9a5c992d77adfe56186866c91a4c7d4157750ff09ba5a047")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D SDBUSCPP_BUILD_CODEGEN=false
|
||||
-D SDBUSCPP_BUILD_DOCS=yes
|
||||
-D SDBUSCPP_BUILD_DOXYGEN_DOCS=false
|
||||
-D SDBUSCPP_BUILD_LIBSYSTEMD=no
|
||||
-D SDBUSCPP_BUILD_TESTS=false
|
||||
)
|
||||
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:
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=lua
|
||||
pkgver=5.4.8
|
||||
_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=("c8001304dc1bb622521282358856e40eb9277a8d0496614211ff8d1865d14fadd8d584d0636831ca5de8ca57462b90e1484701e91b05f3d685c736b9e72905ca")
|
||||
|
||||
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:
|
||||
@@ -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,34 @@
|
||||
pkgname=sassc
|
||||
pkgver=3.6.2
|
||||
pkgrel=5
|
||||
pkgdesc='C implementation of Sass CSS preprocessor'
|
||||
arch=(x86_64)
|
||||
url='https://sass-lang.com'
|
||||
license=(MIT)
|
||||
depends=(libsass)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/sass/sassc/archive/${pkgver}.tar.gz")
|
||||
sha256sums=("608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
[[ -f VERSION ]] || echo "${pkgver}" > VERSION
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
--disable-static
|
||||
--enable-shared
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,49 @@
|
||||
pkgname=vala
|
||||
pkgver=0.56.18
|
||||
pkgrel=5
|
||||
pkgdesc='Compiler for the GObject type system'
|
||||
url='https://wiki.gnome.org/Projects/Vala'
|
||||
arch=(x86_64)
|
||||
license=(LGPL-2.1-or-later)
|
||||
depends=(
|
||||
bash
|
||||
gcc
|
||||
glib:2
|
||||
glibc
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
)
|
||||
makedepends=(
|
||||
libxslt
|
||||
)
|
||||
checkdepends=(
|
||||
dbus-glib
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("7ba820942ac40b54a62cbcd8a1d94d5add022b4a2c69e1276fc9fca38361d5878f3f852d270e0a5ef4bca6bd2df3a65f14b410c600b82a46da4123c90a3107e7")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
#--disable-unversioned
|
||||
--disable-valadoc
|
||||
VALAC=:
|
||||
WEASYPRINT=:
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -vDm644 vala.m4 vapigen/vapigen.m4 -t "${pkgdir}/usr/share/aclocal"
|
||||
install -vDm644 vapigen/Makefile.vapigen -t "${pkgdir}/usr/share/vala"
|
||||
}
|
||||
|
||||
# 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,28 @@
|
||||
pkgname=ayatana-ido
|
||||
pkgver=0.10.4
|
||||
pkgdesc="Ayatana Application Indicators (Shared Library)"
|
||||
homepage="https://github.com/AyatanaIndicators/ayatana-ido"
|
||||
license=("LGPL-2.1" "LGPL-3" "GPL-3")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/AyatanaIndicators/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("a36b67cb505b9340a8193e281c72831b56d6a620054e99e1032145ec0d8d26fe4768402b36ee4d7e115dbbd6fb393cc15c3d71c15d040f5eb22d3d2114f80536")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D ENABLE_TESTS=false
|
||||
)
|
||||
cmake -B build "${meson_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,48 @@
|
||||
pkgname=date
|
||||
pkgver=3.0.3
|
||||
pkgdesc="Date and time library based on the C++11/14/17 <chrono> header"
|
||||
homepage="https://github.com/HowardHinnant/date"
|
||||
license=("MIT")
|
||||
_patches=("date-3.0.3_remove-failing-tests.patch")
|
||||
_patche_sums=("e5a453239592d4852d05b50f1f428f6cbc3b0415a247d1e3e9aea4cef42a02d3e9f65233bb717629e2670667e73e700af72eba5374faa6f96f5e952f630d45e1")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/HowardHinnant/date/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("e11d7f230ecc431d94c4b58fe7394dd57a9ec0baa9de52496578479b51bbf885566d6666882916d84d388060fa36065b3fa8dd3a8bc14f720b38d1c943f06700"
|
||||
"${_patche_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_SHARED_LIBS=true
|
||||
-D BUILD_TZ_LIB=ON
|
||||
-D USE_SYSTEM_TZ_DB=ON
|
||||
-D ENABLE_DATE_TESTING=no
|
||||
-D COMPILE_WITH_C_LOCALE=no
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cd test
|
||||
./testit
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,34 @@
|
||||
From: Filip Kobierski <fkobi@pm.me>
|
||||
|
||||
Upstream states that " There are known failures on all platforms"[1].
|
||||
This patch removes the tests that fail for Gentoo.
|
||||
They both test if the library can parse PM dates in a 12 hour format.
|
||||
|
||||
Here are the failiure messages:
|
||||
test_Ip(): Assertion `tp == sys_days{2016_y/12/11} + hours{13}' failed.
|
||||
test_p(): Assertion `tp == sys_days{2016_y/12/11} + hours{23}' failed.
|
||||
|
||||
[1]: https://github.com/HowardHinnant/date?tab=readme-ov-file#build--test
|
||||
---
|
||||
test/date_test/parse.pass.cpp | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/test/date_test/parse.pass.cpp b/test/date_test/parse.pass.cpp
|
||||
index 13ca909..cdeea71 100644
|
||||
--- a/test/date_test/parse.pass.cpp
|
||||
+++ b/test/date_test/parse.pass.cpp
|
||||
@@ -906,11 +906,9 @@ main()
|
||||
test_D();
|
||||
test_F();
|
||||
test_H();
|
||||
- test_Ip();
|
||||
test_j();
|
||||
test_m();
|
||||
test_M();
|
||||
- test_p();
|
||||
test_r();
|
||||
test_R();
|
||||
test_S();
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
pkgname=dbus-glib
|
||||
pkgver=0.114
|
||||
pkgdesc="D-Bus bindings for glib"
|
||||
homepage="https://dbus.freedesktop.org/"
|
||||
license=("GPL-2")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://dbus.freedesktop.org/releases/${pkgname}/${sources[0]}")
|
||||
sha512sums=("c341cc0778edbf776d3e1a6d3cd9c136766544cb4b7239d6affa2fa246fa9c5716fe4d674c9bb56b36ee140344663bf967f70841ad132f978a662a22cc9a3a0d")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--localstatedir=/var
|
||||
--enable-bash-completion
|
||||
--disable-gtk-doc
|
||||
--disable-asserts
|
||||
--disable-static
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -vDm644 "${pkgdir}"/etc/bash_completion.d/dbus-bash-completion.sh "${pkgdir}"/usr/share/bash-completion/completions/dbus-send
|
||||
rm -r "${pkgdir}"/etc
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -1,5 +1,6 @@
|
||||
pkgname=gobject-introspection
|
||||
pkgver=1.84.0
|
||||
_basever=${pkgver%.*}
|
||||
pkgdesc="Introspection system for GObject-based libraries"
|
||||
url="https://wiki.gnome.org/Projects/GObjectIntrospection"
|
||||
arch=(x86_64)
|
||||
@@ -33,3 +34,5 @@ src_install() {
|
||||
python -m compileall -d /usr/lib/${pkgname} usr/lib/${pkgname}
|
||||
python -O -m compileall -d /usr/lib/${pkgname} usr/lib/${pkgname}
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
pkgname=granite
|
||||
pkgver=7.6.0
|
||||
pkgdesc='Library that extends Gtk+'
|
||||
arch=(x86_64)
|
||||
homepage=https://github.com/elementary/granite
|
||||
license=(LGPL3)
|
||||
depends=(
|
||||
cairo
|
||||
glib:2
|
||||
gtk:4
|
||||
libgee:0.8
|
||||
)
|
||||
makedepends=(
|
||||
cmake
|
||||
meson
|
||||
sassc
|
||||
vala
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/elementary/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("0a3ab1aa9d648578d80877beaab52eebd1b77981f54f9ca0b9c88e44c9a832738e4bd52357e6537b783d64ac6a7812c8a73331dfe759d12e1f3ea212ba111f5f")
|
||||
|
||||
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 documentation=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=inih
|
||||
pkgver=62
|
||||
pkgdesc="inih (INI not invented here) simple .INI file parser"
|
||||
homepage="https://github.com/benhoyt/inih"
|
||||
license=("BSD")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/benhoyt/inih/archive/r${pkgver}.tar.gz")
|
||||
sha512sums=("206ddfaa55d29396c3a44f8d1dfcf578c5ebf892e81fe875cd6b4ec2af5cccf400ca13fc6585b6d8232bd122bd8aef7522bfc83898b5609b29c20bad9390ee02")
|
||||
|
||||
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 default_library=shared
|
||||
-D distro_install=true
|
||||
-D with_INIReader=true
|
||||
-D tests=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=json-glib
|
||||
pkgver=1.10.8
|
||||
pkgdesc="Library providing GLib serialization and deserialization for the JSON format"
|
||||
homepage="https://wiki.gnome.org/Projects/JsonGlib"
|
||||
license=("LGPL-2.1+")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("f4ba8660b586a4e738803e4dbfdfcd34fa7ceba9189e7bf3f2b50e21f4d4886f99535ceb3453c89b1d1ae8d96bf4168a135b73b7e1a2dbc46b19e9b710ad56a1")
|
||||
|
||||
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 installed_tests=false
|
||||
-D introspection=enabled
|
||||
-D documentation=disabled
|
||||
-D man=true
|
||||
-D nls=enabled
|
||||
-D tests=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=jsoncpp
|
||||
pkgver=1.9.6
|
||||
pkgdesc="C++ JSON reader and writer"
|
||||
homepage="https://github.com/open-source-parsers/jsoncpp/"
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/open-source-parsers/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("006d81f9f723dcfe875ebc2147449c07c5246bf97dd7b9eee1909decc914b051d6f3f06feb5c3dfa143d28773fb310aabb04a81dc447cc61513309df8eba8b08")
|
||||
|
||||
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
|
||||
--includedir include/jsoncpp
|
||||
-D tests=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
|
||||
# https://bugs.gentoo.org/941642
|
||||
rm -r "${pkgdir}/usr/lib/cmake"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=libayatana-appindicator
|
||||
pkgver=0.5.94
|
||||
pkgdesc="Ayatana Application Indicators (Shared Library)"
|
||||
homepage="https://github.com/AyatanaIndicators/libayatana-appindicator"
|
||||
license=(GPL-3 LGPL-2 LGPL-3)
|
||||
depends=("glib" "gtk+:3[introspection]" "libdbusmenu[gtk3]" "libayatana-indicator")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/AyatanaIndicators/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("4bd251dd56601dfb99b0085cc272118680c9145cdac671ad6695ef3200e582343a07e99dc30f5a72b586b6e2e60de0042d4a95b9d9eeafa7695b0afe2425dba4")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D ENABLE_TESTS=false
|
||||
-D ENABLE_GTKDOC=OFF
|
||||
-D ENABLE_BINDINGS_MONO=OFF
|
||||
-D FLAVOUR_GTK2=OFF
|
||||
-D FLAVOUR_GTK3=ON
|
||||
)
|
||||
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,32 @@
|
||||
pkgname=libayatana-indicator
|
||||
pkgver=0.9.4
|
||||
pkgdesc="Ayatana Application Indicators (Shared Library)"
|
||||
homepage="https://github.com/AyatanaIndicators/libayatana-indicator"
|
||||
license=("GPL-3")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/AyatanaIndicators/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("56efbe0eb14abf38cb7e270ae093b5fb41dab652eab6fa0d3f7972b09b0f2404e3ec7fbb3059c0b26802fffc628f5ace16a33db306f97a65ae42cf65494a56dc")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D FLAVOUR_GTK2=OFF
|
||||
-D FLAVOUR_GTK3=ON
|
||||
-D ENABLE_IDO=ON
|
||||
-D ENABLE_LOADER=ON
|
||||
-D ENABLE_TESTS=false
|
||||
)
|
||||
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,57 @@
|
||||
pkgname=libdbusmenu
|
||||
pkgver=16.04.0
|
||||
_ver=${pkgver%.*}
|
||||
slot="0"
|
||||
pkgdesc="Library to pass menu structure across DBus"
|
||||
homepage="https://launchpad.net/libdbusmenu"
|
||||
license=("LGPL-2.1" "LGPL-3")
|
||||
_patches=("libdbusmenu-16.04.0-configure-fix.patch"
|
||||
"libdbusmenu-16.04.0-werror.patch"
|
||||
)
|
||||
_patch_sums=("e872017556eb7e6b23a9c80e478b9e25be604bd2500be94879bad6634150265bb7b2979fc3cbe05a06dc9f3ca115ab57457853b37c6db622b5ec4bb23abff2bd"
|
||||
"ba1144695110cd8ecf89deaea28e0aacc40b00a500a1dc86c28e67754599117e0a2217c4d6066c1061fa009af82e463dd303ba78c479053857ef6e793959068e"
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://launchpad.net/${pkgname/lib}/${_ver}/${pkgver}/+download/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("ee9654ac4ed94bdebc94a6db83b126784273a417a645b2881b2ba676a5f67d7fc95dd2bb37bfb0890aa47299ed73cb21ed7de8b75f3fed6b69bfd39065062241"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
autoconf
|
||||
}
|
||||
|
||||
src_build() {
|
||||
CFLAGS+=" -Wno-error"
|
||||
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
--cache-file="${srcdir}"/config.cache
|
||||
--disable-static
|
||||
# dumper extra tool is only for GTK+-2.x
|
||||
--disable-dumper
|
||||
--disable-introspection
|
||||
--disable-vala
|
||||
--disable-massivedebugging
|
||||
--disable-tests
|
||||
--enable-gtk
|
||||
--with-gtk=3
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make -j1 DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,35 @@
|
||||
From 4b79b41a25cc1e2c4355738b4bed6c73b919ffee Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sun, 6 Aug 2017 17:55:45 +0200
|
||||
Subject: [PATCH] configure: Fix HAVE_VALGRIND not being defined when tests are
|
||||
disabled
|
||||
|
||||
If --disable-tests is used, configure fails with the following error:
|
||||
|
||||
configure: error: conditional "HAVE_VALGRIND" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.
|
||||
|
||||
This is because AM_CONDITIONAL for it is called inside the 'if' for
|
||||
tests being enabled. Move it just below that block to ensure that it's
|
||||
defined unconditionally.
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ace54d1..cbd38a6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -120,8 +120,8 @@ PKG_CHECK_MODULES(DBUSMENUTESTS, json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION
|
||||
[have_tests=yes]
|
||||
)
|
||||
PKG_CHECK_MODULES(DBUSMENUTESTSVALGRIND, valgrind, have_valgrind=yes, have_valgrind=no)
|
||||
-AM_CONDITIONAL([HAVE_VALGRIND], [test "x$have_valgrind" = "xyes"])
|
||||
])
|
||||
+AM_CONDITIONAL([HAVE_VALGRIND], [test "x$have_valgrind" = "xyes"])
|
||||
|
||||
AC_SUBST(DBUSMENUTESTS_CFLAGS)
|
||||
AC_SUBST(DBUSMENUTESTS_LIBS)
|
||||
--
|
||||
2.14.0
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
https://bugs.gentoo.org/691260
|
||||
|
||||
--- a/libdbusmenu-glib/Makefile.am
|
||||
+++ b/libdbusmenu-glib/Makefile.am
|
||||
@@ -68,3 +68,3 @@ libdbusmenu_glib_la_CFLAGS = \
|
||||
$(COVERAGE_CFLAGS) \
|
||||
- -Wall -Werror -Wno-error=deprecated-declarations \
|
||||
+ -Wall -Wno-error=deprecated-declarations \
|
||||
-DG_LOG_DOMAIN="\"LIBDBUSMENU-GLIB\""
|
||||
--- a/libdbusmenu-gtk/Makefile.am
|
||||
+++ b/libdbusmenu-gtk/Makefile.am
|
||||
@@ -68,3 +68,3 @@ libdbusmenu_gtk_la_CFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
- -Wall -Werror -Wno-error=deprecated-declarations \
|
||||
+ -Wall -Wno-error=deprecated-declarations \
|
||||
-DG_LOG_DOMAIN="\"LIBDBUSMENU-GTK\""
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -105,3 +105,3 @@ TESTS_ENVIRONMENT = env GI_TYPELIB_PATH=$(top_builddir)/libdbusmenu-glib:$(top_b
|
||||
DBUSMENU_GLIB_TEST_CFLAGS = \
|
||||
- -Wall -Werror \
|
||||
+ -Wall \
|
||||
-DG_DISABLE_DEPRECATED \
|
||||
--- a/tools/Makefile.am
|
||||
+++ b/tools/Makefile.am
|
||||
@@ -18,3 +18,3 @@ dbusmenu_dumper_CFLAGS = \
|
||||
$(DBUSMENUDUMPER_CFLAGS) \
|
||||
- -Wall -Werror
|
||||
+ -Wall
|
||||
|
||||
--- a/tools/testapp/Makefile.am
|
||||
+++ b/tools/testapp/Makefile.am
|
||||
@@ -14,3 +14,3 @@ dbusmenu_testapp_CFLAGS = \
|
||||
$(DBUSMENUGLIB_CFLAGS) \
|
||||
- -Wall -Werror
|
||||
+ -Wall
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
pkgname=libfmt
|
||||
pkgver=11.1.4
|
||||
pkgdesc="Small, safe and fast formatting library"
|
||||
homepage="https://fmt.dev/dev/ https://github.com/fmtlib/fmt"
|
||||
license=("MIT")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/fmtlib/fmt/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("573b7de1bd224b7b1b60d44808a843db35d4bc4634f72a9edcb52cf68e99ca66c744fd5d5c97b4336ba70b94abdabac5fc253b245d0d5cd8bbe2a096bf941e39")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D BUILD_SHARED_LIBS=ON
|
||||
-W no-dev
|
||||
-D FMT_CMAKE_DIR="/usr/lib/cmake/fmt"
|
||||
-D FMT_LIB_DIR="/usr/lib"
|
||||
-D FMT_TEST=true
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cmake --build build --target test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,34 @@
|
||||
pkgname=libgee
|
||||
pkgver=0.20.8
|
||||
pkgdesc="A collection library providing GObject-based interfaces and classes for commonly used data structures"
|
||||
homepage="https://gitlab.gnome.org/GNOME/libgee"
|
||||
license=(LGPL-2.1-or-later)
|
||||
arch=(x86_64)
|
||||
depends=(
|
||||
glib
|
||||
glibc
|
||||
)
|
||||
makedepends=(
|
||||
git
|
||||
gobject-introspection
|
||||
vala
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("9af883bb4b2c25c429271201e634d1851378631b913bab282fe432b2b76a44674111e65caa99269fd403454c87b5474f2567c554bddd0b3ea58ca6e138c311e1")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --disable-static \
|
||||
--enable-introspection
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -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,33 @@
|
||||
pkgname=libnl
|
||||
pkgver=3.10.0
|
||||
_libnl_dir=${pkgver/_/}
|
||||
_libnl_dir=${_libnl_dir//./_}
|
||||
slot="3"
|
||||
pkgdesc="Libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
||||
homepage="https://www.infradead.org/~tgr/libnl/ https://github.com/thom311/libnl"
|
||||
license=("LGPL-2.1")
|
||||
sources=("${pkgname}-${pkgver/_rc/-rc}.tar.gz")
|
||||
urls=("https://github.com/thom311/${pkgname}/releases/download/${pkgname}${_libnl_dir}/${sources[0]}")
|
||||
sha512sums=("c95e79fba69308c63a08d0c576503b4398710ea9cd1d0097851500a7fbc5fbe87fb32ac281cf42bbfe57eab07b110055e6bc9b95d82244bba3df8a31fe562962")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--disable-static
|
||||
--disable-cli
|
||||
--disable-debug
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,32 @@
|
||||
pkgname=libsass
|
||||
pkgver=3.6.6
|
||||
pkgdesc='C implementation of Sass CSS preprocessor (library)'
|
||||
arch=(x86_64)
|
||||
homepage="https://sass-lang.com/$pkgname/"
|
||||
license=(MIT)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/sass/libsass/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("659828c854af391c10a16954425fbeeb5fa036189dea45555cd8046338f7469eb7f8d84134030ce644921514b8f397ef6070b56dfb116ea7ce94328d64576518")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
[[ -f VERSION ]] || echo "${pkgver}" > VERSION
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local conf_args=(
|
||||
--prefix=/usr
|
||||
--disable-static
|
||||
--enable-shared
|
||||
)
|
||||
./configure "${conf_args[@]}"
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,43 @@
|
||||
pkgname=libsigc++
|
||||
pkgver=2.12.1
|
||||
_ver=${pkgver%.*}
|
||||
pkgdesc="Callback Framework for C++"
|
||||
homepage="https://libsigcplusplus.github.io/libsigcplusplus/"
|
||||
arch=(x86_64)
|
||||
license=(LGPL-2.1-or-later)
|
||||
depends=(
|
||||
gcc
|
||||
glibc
|
||||
)
|
||||
makedepends=(
|
||||
meson
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${_ver}/${sources[0]}")
|
||||
sha512sums=("5e5c920807952c732a9acb139f707fdf556786133c18bc8842130803f864ba1f260e1d4a51be0a9892c2228bcfdf129a9a2ce91e3d20077870431a53a87a9f2a")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
#leaf_filter_flags "-fno-exceptions" #`leaf_filter_flags` to be implymented
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D benchmark=false
|
||||
-D build-documentation=false
|
||||
-D build-examples=false
|
||||
-D build-tests=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,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,42 @@
|
||||
pkgname=libxmlb
|
||||
pkgver=0.3.24
|
||||
pkgdesc="Library to help create and query binary XML blobs"
|
||||
homepage="https://github.com/hughsie/libxmlb"
|
||||
license=("LGPL-2.1+")
|
||||
depends=(glib:2 xz-utils zstd)
|
||||
bdepends=(meson)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/hughsie/libxmlb/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("534e5fe01727b9427137c51984c9ddced91b842c712d4f34f582193c838429b396be6e444246b324d39f6732fdf582a7d89570049f4f48d4a161aff82e33aa49")
|
||||
|
||||
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 lzma=enabled
|
||||
-D zstd=enabled
|
||||
-D gtkdoc=false
|
||||
-D introspection=false
|
||||
-D stemmer=false
|
||||
-D tests=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
rm -rf "${pkgdir}"/usr/{libexec,share}/installed-tests
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -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,45 @@
|
||||
pkgname=spdlog
|
||||
pkgver=1.15.3
|
||||
pkgdesc="Fast C++ logging library"
|
||||
homepage="https://github.com/gabime/spdlog"
|
||||
license=("MIT")
|
||||
_patches=("spdlog-force_external_fmt.patch")
|
||||
_patch_sums=("257c7f7f56e66b88a16238a2c81887f2d5ba9692c18bf5fc371b95f44936018ec7c4a0abd0e54f38cb6a7957f82a1b95af9d238fa7fa16631f0be1980d76f692")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/gabime/${pkgname}/archive/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("21c35f4091850ea3a0cd6a24867e06e943df70d76cd5a7ec0b15a33e0e9e0cc3584ed7930e1ac6f347e7e06f0e002d0e759884eaf05310014e24ea0e0419fcc4"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
find include/spdlog/ -type f -name "*.orig" -delete
|
||||
rm -r include/spdlog/fmt/bundled
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-DSPDLOG_BUILD_BENCH=no
|
||||
-DSPDLOG_BUILD_EXAMPLE=no
|
||||
-DSPDLOG_FMT_EXTERNAL=yes
|
||||
-DSPDLOG_BUILD_SHARED=yes
|
||||
-DSPDLOG_BUILD_TESTS=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,15 @@
|
||||
diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h
|
||||
index 24361f30..6b4fc14c 100644
|
||||
--- a/include/spdlog/tweakme.h
|
||||
+++ b/include/spdlog/tweakme.h
|
||||
@@ -71,7 +71,9 @@
|
||||
// In this case spdlog will try to include <fmt/format.h> so set your -I flag
|
||||
// accordingly.
|
||||
//
|
||||
-// #define SPDLOG_FMT_EXTERNAL
|
||||
+#ifndef SPDLOG_FMT_EXTERNAL
|
||||
+#define SPDLOG_FMT_EXTERNAL
|
||||
+#endif
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@@ -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,34 @@
|
||||
pkgname=pygobject
|
||||
pkgver=3.50.1
|
||||
pkgdesc="Python bindings for GObject Introspection"
|
||||
homepage="https://pygobject.gnome.org"
|
||||
license=("LGPL-2.1+")
|
||||
depends=(glib gobject-introspection libffi)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("5708756cbc8e2b697442953a7f3d391ace98f1b7811cb905b0d80185f020bf32a775d70c49d1620a9733e83a6862314f2a72fa1b77cb26a01e84b3bff72e068e")
|
||||
|
||||
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 pycairo=disabled
|
||||
-D tests=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
python -m compileall -d /usr/lib "$pkgdir/usr/lib"
|
||||
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
|
||||
}
|
||||
|
||||
# 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:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user