summaryrefslogblamecommitdiff
path: root/system/skalibs/APKBUILD
blob: 2bf84e8681926340f6b520cc2be3df0f18b6eb52 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                      
               

              





                                                                                   
                                                                      




























                                                                 
                                                                                                                                                                     
# Contributor: Laurent Bercot <ska-adelie@skarnet.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=skalibs
pkgver=2.7.0.0
pkgrel=1
pkgdesc="A set of general-purpose C programming libraries for skarnet.org software"
url="http://skarnet.org/software/skalibs/"
arch="all"
options="!check"  # No test suite.
license="ISC"
subpackages="$pkgname-dev $pkgname-doc"
source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cd "$builddir"
	./configure \
		--enable-shared \
		--enable-static \
		--libdir=/usr/lib \
                --enable-clock
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

dev() {
	default_dev
	mv "$pkgdir/usr/lib/$pkgname"/sysdeps/* \
		"$subpkgdir/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"
}

sha512sums="33624b606a0846478e6fde10057633b43e76bda299d067cff269582c252f05108ebf28c539865c7f24b67e99575328fc7789326dfbb2e81bf209aa51445f04a1  skalibs-2.7.0.0.tar.gz"