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://github.com/pkgconf/pkgconf"
15 makedepends=(git meson)
16 provides=(pkg-config pkgconfig libpkgconf.so)
17 conflicts=(pkg-config)
20 _commit=cef30268e1a3f79efd607c26abcf556aa314c9c4 # tags/pkgconf-1.8.0
21 source=("git+$url#commit=$_commit"
22 i686-pc-linux-gnu.personality
23 x86_64-pc-linux-gnu.personality)
25 '6697c6db7deaae269ea75624a70e80949241f2cf59a537f31ecfcac726d90bc1'
26 'c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5')
30 git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
38 arch-meson $pkgname build -D tests=false
39 meson compile -C build
43 meson test -C build --print-errorlogs
47 meson install -C build --destdir "$pkgdir"
49 install -Dt "$pkgdir/usr/share/pkgconfig/personality.d" -m644 \
50 i686-pc-linux-gnu.personality \
51 x86_64-pc-linux-gnu.personality
53 ln -s pkgconf "$pkgdir/usr/bin/i686-pc-linux-gnu-pkg-config"
54 ln -s pkgconf "$pkgdir/usr/bin/x86_64-pc-linux-gnu-pkg-config"
55 ln -s pkgconf "$pkgdir/usr/bin/pkg-config"
57 ln -s pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
59 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING