blob: 607d56d7e9fcc91306b52b6e220023864ded88e8 (
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
62
|
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=skalibs
pkgver=2.3.8.3
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
make strip || 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="142a296760aab02f2821abf00706e53a skalibs-2.3.8.3.tar.gz"
sha256sums="3652e268f42ce60959dcc80ca3eba8dc17b6d365309179bfb0e04bc5f1603d7c skalibs-2.3.8.3.tar.gz"
sha512sums="da5f183cc83e238942cb20e70f334c498fac311e26e62b8ae497efd2a2a183114c2898deafbce8f4da396cae51678dc4927138e6b978ce474e98392e05a74d30 skalibs-2.3.8.3.tar.gz"
|