aboutsummaryrefslogtreecommitdiffstats
path: root/main/pth/APKBUILD
blob: e2c109ee1b87e43169be6a0e3f753b7dc9b090aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pth
pkgver=2.0.7
pkgrel=4
pkgdesc="The GNU Portable Threads."
url="http://www.gnu.org/software/pth"
arch="all"
license="LGPL-2.1"
depends=""
subpackages="$pkgname-dev $pkgname-doc"
options="!libc_musl"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	pth-2.0.5-parallelfix.patch
	pth-2.0.6-ldflags.patch
	pth-2.0.6-sigstack.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1

	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
}

md5sums="9cb4a25331a4c4db866a31cbe507c793  pth-2.0.7.tar.gz
7bbd4f3328807c740c86db94e93e48ad  pth-2.0.5-parallelfix.patch
942fa4be28117756cd579937b257b9cc  pth-2.0.6-ldflags.patch
04e43157d758a3dc7925c35e6dd1e39c  pth-2.0.6-sigstack.patch"