-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
37 lines (32 loc) · 842 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Template file for 'fehQlibs'
pkgname=fehQlibs
version=15b
revision=1
build_style=gnu-makefile
short_desc="State-of-the-art C routines for Internet services"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="http://www.fehcom.de/ipnet/qlibs.html"
distfiles="http://www.fehcom.de/ipnet/fehQlibs/fehQlibs-${version}.tgz"
checksum=cb78f09621b2e9cff5b0fe246de7730c608756263558330c8e04f7adb2aa0ebb
disable_parallel_build=yes
post_extract() {
sed -i '/^CC=/d' configure
}
do_build() {
cat >conf-build <<EOF
CFLAGS='$CFLAGS -fPIC'
LIBDIR=$DESTDIR/usr/lib
HDRDIR=$DESTDIR/usr/include/fehQlibs
EOF
make CC="$CC" LDFLAGS= default
}
do_install() {
vmkdir usr/include/fehQlibs
vmkdir usr/lib
cp include/*.h ${DESTDIR}/usr/include/fehQlibs
cp lib* ${DESTDIR}/usr/lib
vdoc BUILD
vdoc VERSION
vlicense LICENSE
}