db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / pkgconf / trunk / PKGBUILD
blob8f44c232cb25d19939eb5ea5a956f43608fe748c
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>
7 pkgname=pkgconf
8 pkgver=1.8.1
9 pkgrel=1
10 pkgdesc="Package compiler and linker metadata toolkit"
11 url="https://gitea.treehouse.systems/ariadne/pkgconf"
12 license=(custom:ISC)
13 arch=(x86_64)
14 depends=(glibc sh)
15 makedepends=(git meson)
16 provides=(pkg-config pkgconfig libpkgconf.so)
17 conflicts=(pkg-config)
18 replaces=(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)
23 sha256sums=('SKIP'
24             '6697c6db7deaae269ea75624a70e80949241f2cf59a537f31ecfcac726d90bc1'
25             'c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5')
27 pkgver() {
28   cd $pkgname
29   git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
32 prepare() {
33   cd $pkgname
36 build() {
37   arch-meson $pkgname build -D tests=false
38   meson compile -C build
41 check() {
42   meson test -C build --print-errorlogs
45 package() {
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
61 # vim:set sw=2 et: