* update pkgconf to 1.8.0-1
This commit is contained in:
parent
35a3d12984
commit
58fe3a8126
@ -1,77 +1,68 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||
# 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=1.7.3
|
||||
pkgrel=2
|
||||
pkgver=1.8.0
|
||||
pkgrel=1
|
||||
pkgdesc="Package compiler and linker metadata toolkit"
|
||||
url="https://git.sr.ht/~kaniini/pkgconf"
|
||||
url="https://github.com/pkgconf/pkgconf"
|
||||
license=(custom:ISC)
|
||||
arch=(x86_64 powerpc64le powerpc)
|
||||
depends=(glibc sh)
|
||||
makedepends=(git)
|
||||
provides=(pkg-config pkgconfig)
|
||||
makedepends=(git meson)
|
||||
provides=(pkg-config pkgconfig libpkgconf.so)
|
||||
conflicts=(pkg-config)
|
||||
replaces=(pkg-config)
|
||||
groups=(base-devel)
|
||||
_commit=aca0674837cb6df1b29faddb8afe6b2f39733f6b # tags/pkgconf-1.7.3
|
||||
source=("git+https://git.sr.ht/~kaniini/pkgconf#commit=$_commit"
|
||||
_commit=cef30268e1a3f79efd607c26abcf556aa314c9c4 # tags/pkgconf-1.8.0
|
||||
source=("git+$url#commit=$_commit"
|
||||
i686-pc-linux-gnu.personality
|
||||
x86_64-pc-linux-gnu.personality
|
||||
powerpc64le-unknown-linux-gnu.personality
|
||||
powerpc-unknown-linux-gnu.personality)
|
||||
powerpc-unknown-linux-gnu.personality
|
||||
x86_64-pc-linux-gnu.personality)
|
||||
sha256sums=('SKIP'
|
||||
'6697c6db7deaae269ea75624a70e80949241f2cf59a537f31ecfcac726d90bc1'
|
||||
'c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5'
|
||||
'481c1d61538943759db67fe80e34d03f681a36bba0eceaa9b0e40c4b6ef36f76'
|
||||
'be1a66bf5a6728fe22a37940f78cdcfc5db6323d821a1d1f3468edd68179b4be')
|
||||
'be1a66bf5a6728fe22a37940f78cdcfc5db6323d821a1d1f3468edd68179b4be'
|
||||
'c8297817ba0b57d003878db247ff34b4c47a7594c9f67dcfe8ff8d6567956cd5')
|
||||
|
||||
_pcdirs=/usr/lib/pkgconfig:/usr/share/pkgconfig
|
||||
_libdir=/usr/lib
|
||||
_includedir=/usr/include
|
||||
|
||||
#pkgver() {
|
||||
# cd $pkgname
|
||||
#git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
|
||||
#}
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --tags | sed 's/^pkgconf-//;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
mkdir build
|
||||
cd $pkgname
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
../$pkgname/configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-pkg-config-dir="$_pcdirs" \
|
||||
--with-system-libdir="$_libdir" \
|
||||
--with-system-includedir="$_includedir" \
|
||||
--disable-static
|
||||
make
|
||||
arch-meson $pkgname build -D tests=false
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
check() {
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" make -C build install
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
|
||||
install -Dt "$pkgdir/usr/share/pkgconfig/personality.d" -m644 \
|
||||
i686-pc-linux-gnu.personality \
|
||||
x86_64-pc-linux-gnu.personality \
|
||||
powerpc64le-unknown-linux-gnu.personality \
|
||||
powerpc-unknown-linux-gnu.personality
|
||||
x86_64-pc-linux-gnu.personality
|
||||
|
||||
ln -s pkgconf "$pkgdir/usr/bin/i686-pc-linux-gnu-pkg-config"
|
||||
ln -s pkgconf "$pkgdir/usr/bin/x86_64-pc-linux-gnu-pkg-config"
|
||||
ln -s pkgconf "$pkgdir/usr/bin/powerpc64le-unknown-linux-gnu-pkg-config"
|
||||
ln -s pkgconf "$pkgdir/usr/bin/powerpc-unknown-linux-gnu-pkg-config"
|
||||
ln -s pkgconf "$pkgdir/usr/bin/x86_64-pc-linux-gnu-pkg-config"
|
||||
ln -s pkgconf "$pkgdir/usr/bin/pkg-config"
|
||||
|
||||
ln -s pkgconf.1 "$pkgdir/usr/share/man/man1/pkg-config.1"
|
||||
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING
|
||||
}
|
||||
|
||||
|
5
pkgconf/powerpc-unknown-linux-gnu.personality
Normal file
5
pkgconf/powerpc-unknown-linux-gnu.personality
Normal file
@ -0,0 +1,5 @@
|
||||
Triplet: powerpc-unknown-linux-gnu
|
||||
SysrootDir: /
|
||||
DefaultSearchPaths: /usr/lib/pkgconfig:/usr/share/pkgconfig
|
||||
SystemIncludePaths: /usr/include
|
||||
SystemLibraryPaths: /usr/lib
|
Loading…
x
Reference in New Issue
Block a user