archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pth / repos / core-x86_64 / PKGBUILD
blobd01e84b1e2739146cbe35c2b4bcaddad5405fa6b
2 pkgname=pth
3 pkgver=2.0.7
4 pkgrel=7
5 pkgdesc="The GNU Portable Threads."
6 arch=('x86_64')
7 url="https://www.gnu.org/software/pth/"
8 license=('LGPL')
9 depends=('glibc' 'awk')
10 options=('!makeflags')
11 source=(https://ftp.gnu.org/gnu/pth/$pkgname-$pkgver.tar.gz{,.sig})
12 sha512sums=('f79d74047c50e06f3198356f88647c5c1c8a04ebdd94641fc31d5ab0fd2750d86615fcb81da2f98d7ea73d012a501195d3fa09060571d18dcfdaec5d7a0ecb12'
13             'SKIP')
14 validpgpkeys=('4E23E878D41A0A88EDFCFA5A6E744ACBA9C09E30')  # Ralf Engelschall
16 build() {
17   cd "$pkgname-$pkgver"
19   ./configure --prefix=/usr \
20               --sysconfdir=/etc \
21               --localstatedir=/var \
22               --mandir=/usr/share/man \
23               --disable-static \
24               --enable-shared \
25               --with-pic
27   sed -i "s|awk=''|awk=/bin/awk|g" shtool # "Cannot find a reasonable Awk"
29   make
32 check() {
33   cd "$pkgname-$pkgver"
35   make check
38 package() {
39   cd "$pkgname-$pkgver"
41   make DESTDIR="${pkgdir}" install