47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'skalibs'
|
|
pkgname=skalibs
|
|
version=2.6.0.2
|
|
revision=1
|
|
_sysdepspkg=skaware-void-sysdeps
|
|
build_style=gnu-configure
|
|
configure_args="--libdir=/usr/lib --enable-static --enable-shared --enable-clock
|
|
--enable-monotonic --enable-force-devr --datadir=/usr/share/$pkgname"
|
|
short_desc="General purpose libraries for building software from skarnet.org"
|
|
maintainer="bougyman <bougyman@voidlinux.eu>"
|
|
license="ISC"
|
|
homepage="http://skarnet.org/software/skalibs/"
|
|
distfiles="http://skarnet.org/software/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=349b02d925c795e81c9b2f59f5f281f34c0a5477e22b09cfc7c566194923492e
|
|
|
|
CFLAGS="-D_DEFAULT_SOURCE"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
distfiles+=" https://github.com/CMB/${_sysdepspkg}/archive/${version}.tar.gz"
|
|
checksum+=" bbcf70cadd27bbd8275b663f16304b16b205ead9f7dca04975c8fbe8bc210a7e"
|
|
configure_args+=" --with-sysdeps=../${_sysdepspkg}-${version}/${XBPS_CROSS_TRIPLET}"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
}
|
|
|
|
skalibs-doc_package() {
|
|
noarch=yes
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmkdir usr/share/doc/skalibs
|
|
vcopy "doc/*" usr/share/doc/skalibs
|
|
}
|
|
}
|
|
skalibs-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/skalibs/sysdeps
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|