aboutsummaryrefslogtreecommitdiffstats
path: root/main/skalibs/APKBUILD
blob: fe8f3485917cefc392416ced16d388f757f49657 (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
53
54
55
56
57
58
59
60
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=skalibs
pkgver=2.3.10.0
pkgrel=0
pkgdesc="A set of general-purpose C programming libraries for skarnet.org software."
url="http://skarnet.org/software/skalibs/"
arch="all"
license="ISC"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--enable-shared \
		--enable-static \
		--libdir=/usr/lib \
                --enable-clock \
		--enable-force-devr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev
	cd "$subpkgdir"
	mv -f "$pkgdir/usr/lib/$pkgname"/sysdeps/* "usr/lib/$pkgname/sysdeps/"
	rm -rf "$pkgdir/usr"
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

md5sums="51cb8484896c68eb8d167767cdfc702e  skalibs-2.3.10.0.tar.gz"
sha256sums="e4d5147941055b2a367794666f773a4b216c3ae83c015a5fcf2cd0498470ea44  skalibs-2.3.10.0.tar.gz"
sha512sums="9120554a91ef292a8094c4c036b0e93c8db0576d72597c720eca3562d7239da673ace12b9f73747d957a993a780f112b9b7d03030451c1d0b33eaf90b402832a  skalibs-2.3.10.0.tar.gz"