void-packages/srcpkgs/skalibs/template

41 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-19 15:49:57 +00:00
# Template file for 'skalibs'
pkgname=skalibs
2015-11-05 07:33:22 +00:00
version=2.3.8.2
2015-08-20 06:48:44 +00:00
revision=1
2015-09-27 07:57:50 +00:00
nocross=yes
2015-06-19 15:49:57 +00:00
build_style=gnu-configure
2015-09-27 07:57:50 +00:00
configure_args="--libdir=/usr/lib --enable-static --enable-shared --enable-clock
--enable-monotonic --enable-force-devr --datadir=/usr/share/$pkgname"
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"
2015-11-05 07:33:22 +00:00
checksum=96c224c7a6f8d53dda243acad029f3b760dafd370a9ee7f950df1bd1e6a5eef7
2015-06-19 15:49:57 +00:00
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
}
}