jobcore/pkgconf/PKGBUILD-arch

76 lines
1.8 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: Piotr Gorski <lucjan.lucjanov@gmail.com>
# Contributor: Lucy <lucy@luz.lu>
# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=pkgconf
pkgver=2.1.1
pkgrel=1
2022-03-20 13:19:37 +01:00
pkgdesc="Package compiler and linker metadata toolkit"
url="https://gitea.treehouse.systems/ariadne/pkgconf"
license=(ISC)
2022-03-20 13:19:37 +01:00
arch=(x86_64)
2023-11-23 00:39:16 +01:00
depends=(
glibc
sh
)
makedepends=(
git
meson
)
provides=(
libpkgconf.so
pkg-config
pkgconfig
)
2022-03-20 13:19:37 +01:00
conflicts=(pkg-config)
replaces=(pkg-config)
_commit=b6e04e2d47b4ca093632b9efde6303a137ea0634 # tags/pkgconf-2.1.1
2023-11-23 00:39:16 +01:00
source=(
"git+$url#commit=$_commit"
{x86_64,i686}-pc-linux-gnu.personality
)
b2sums=('SKIP'
'c04583e19149c1035cb7777a59f0fbc4988b672d8e45105e33def3d0f9054464e33a400a3e7c7e8b99b334e4fe06aaa9d7e34662e806096d4374bd6b12d803db'
'94c8fd12b5f33611fd6dbeae03b20e72bcf2937e764766e2633b2fd4c14925860d57eee234016c81b0563a47b112ac9ef4a8b3bb9fa3fc0dd266f355bc156c58')
2022-03-20 13:19:37 +01:00
pkgver() {
2023-11-23 00:39:16 +01:00
cd pkgconf
git describe --tags | sed 's/^pkgconf-//;s/[^-]*-g/r&/;s/-/+/g'
2022-03-20 13:19:37 +01:00
}
prepare() {
2023-11-23 00:39:16 +01:00
cd pkgconf
2022-03-20 13:19:37 +01:00
}
build() {
2023-11-23 00:39:16 +01:00
local meson_options=(
-D tests=disabled # Tests need kyua
)
arch-meson pkgconf build "${meson_options[@]}"
2022-03-20 13:19:37 +01:00
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
2023-11-23 00:39:16 +01:00
local p
for p in {x86_64,i686}-pc-linux-gnu; do
install -Dt "$pkgdir/usr/share/pkgconfig/personality.d" -m644 $p.personality
ln -s pkgconf "$pkgdir/usr/bin/$p-pkg-config"
done
2022-03-20 13:19:37 +01:00
ln -s pkgconf "$pkgdir/usr/bin/pkg-config"
ln -s pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
2023-11-23 00:39:16 +01:00
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pkgconf/COPYING
2022-03-20 13:19:37 +01:00
}
2023-11-23 00:39:16 +01:00
# vim:set sw=2 sts=-1 et: