void-packages/srcpkgs/skalibs/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-19 15:49:57 +00:00
# Template file for 'skalibs'
pkgname=skalibs
version=2.3.5.1
2015-06-20 07:34:57 +00:00
revision=5
2015-06-19 15:49:57 +00:00
nocross="yes"
build_style=gnu-configure
configure_args="--enable-static --enable-shared --enable-clock
--enable-monotonic --enable-force-devr --datadir=/usr/share/$pkgname
--libdir=/usr/lib"
2015-06-19 15:49:57 +00:00
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=9ef75d87bf6d586e828888e4cee6adbb74c06d6afcdb50f6c395644ce0e561d4
CFLAGS="-D_DEFAULT_SOURCE"
2015-06-19 16:51:50 +00:00
post_install() {
2015-06-19 20:46:01 +00:00
vlicense COPYING LICENSE
2015-06-19 16:51:50 +00:00
}
skalibs-doc_package() {
2015-06-19 20:46:01 +00:00
noarch=yes
2015-06-19 16:51:50 +00:00
short_desc+=" - documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmkdir usr/share/doc/skalibs
2015-06-19 17:51:18 +00:00
vcopy "doc/*" usr/share/doc/skalibs
2015-06-19 16:51:50 +00:00
}
}
2015-06-19 15:49:57 +00:00
skalibs-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
2015-06-19 20:46:01 +00:00
vmove usr/lib/skalibs/sysdeps
vmove usr/lib/*.a
2015-06-19 20:46:01 +00:00
vmove usr/lib/*.so
2015-06-19 15:49:57 +00:00
}
}