void-packages/srcpkgs/skalibs/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-19 17:49:57 +02:00
# Template file for 'skalibs'
pkgname=skalibs
2015-08-20 08:48:44 +02:00
version=2.3.6.1
revision=1
2015-06-19 17:49:57 +02: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 17:49:57 +02: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-08-20 08:48:44 +02:00
checksum=bf35cb9698b15becb5c527a48e9cca0523c6e215540c19add8f8588852c2cd63
2015-06-19 17:49:57 +02:00
CFLAGS="-D_DEFAULT_SOURCE"
2015-06-19 18:51:50 +02:00
post_install() {
2015-06-19 22:46:01 +02:00
vlicense COPYING LICENSE
2015-06-19 18:51:50 +02:00
}
skalibs-doc_package() {
2015-06-19 22:46:01 +02:00
noarch=yes
2015-06-19 18:51:50 +02:00
short_desc+=" - documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmkdir usr/share/doc/skalibs
2015-06-19 19:51:18 +02:00
vcopy "doc/*" usr/share/doc/skalibs
2015-06-19 18:51:50 +02:00
}
}
2015-06-19 17:49:57 +02:00
skalibs-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
2015-06-19 22:46:01 +02:00
vmove usr/lib/skalibs/sysdeps
vmove usr/lib/*.a
2015-06-19 22:46:01 +02:00
vmove usr/lib/*.so
2015-06-19 17:49:57 +02:00
}
}