blob: 5c5ceddb2d9be57a04952652e84f4a3e1be78740 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=skalibs
pkgver=2.3.9.0
pkgrel=0
pkgdesc="A set of general-purpose C programming libraries for skarnet.org software."
url="http://skarnet.org/software/skalibs/"
arch="all"
license="ISC"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--host=$CHOST \
--enable-shared \
--enable-static \
--libdir=/usr/lib \
--enable-clock \
--enable-force-devr \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
dev() {
default_dev
cd "$subpkgdir"
mv -f "$pkgdir/usr/lib/$pkgname"/sysdeps/* "usr/lib/$pkgname/sysdeps/"
rm -rf "$pkgdir/usr"
}
doc() {
default_doc
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}
md5sums="8cc1dfad59a588ba3956d78c81b5ea0a skalibs-2.3.9.0.tar.gz"
sha256sums="6229fb4fb415699bbff3b446ff44aa5b7fb9c512b83bd68ae4005603afab60cb skalibs-2.3.9.0.tar.gz"
sha512sums="30b08fec01944fd7e816eb275dfe6eafdf21e14af95e70ae4991b9da716ab191b22c1576084ed7c40fd9e958804519075befaaf4314ccb370ced3c5e94793212 skalibs-2.3.9.0.tar.gz"
|