1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Johannes Löthberg <johannes@kyriasis.com>
3 # Contributor: Piotr Gorski <lucjan.lucjanov@gmail.com>
4 # Contributor: Lucy <lucy@luz.lu>
5 # Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
10 pkgdesc="Package compiler and linker metadata toolkit"
11 url="https://gitea.treehouse.systems/ariadne/pkgconf"
15 makedepends=(git meson)
16 provides=(pkg-config pkgconfig libpkgconf.so)
17 conflicts=(pkg-config)
19 _commit=5436648cd4c890fa1e99be82adc333dad4f50eff # tags/pkgconf-1.8.1
20 source=("git+$url#commit=$_commit"
21 i686-pc-linux-gnu.personality
22 x86_64-pc-linux-gnu.personality)
24 '6697c6db7deaae269ea75624a70e80949241f2cf59a537f31ecfcac726d90bc1'
25 'c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5')
29 git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
37 arch-meson $pkgname build -D tests=false
38 meson compile -C build
42 meson test -C build --print-errorlogs
46 meson install -C build --destdir "$pkgdir"
48 install -Dt "$pkgdir/usr/share/pkgconfig/personality.d" -m644 \
49 i686-pc-linux-gnu.personality \
50 x86_64-pc-linux-gnu.personality
52 ln -s pkgconf "$pkgdir/usr/bin/i686-pc-linux-gnu-pkg-config"
53 ln -s pkgconf "$pkgdir/usr/bin/x86_64-pc-linux-gnu-pkg-config"
54 ln -s pkgconf "$pkgdir/usr/bin/pkg-config"
56 ln -s pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
58 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING