blob: 5cde6920c23c1b437417ee4449e84ba594c7e9a2 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ustr
pkgver=1.0.4
pkgrel=0
pkgdesc="String library, very low memory overhead, simple to import"
url="http://www.and.org/ustr/"
arch="all"
license="MIT or LGPLv2+ or BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-static $pkgname-debug $pkgname-doc $pkgname-dev"
source="http://www.and.org/ustr/$pkgver/ustr-$pkgver.tar.bz2
c99-inline.patch
"
builddir="$srcdir/ustr-$pkgver"
build() {
cd "$builddir"
make all-shared CFLAGS="$CFLAGS -fgnu89-inline" || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
static() {
pkgdesc="ustr static libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}
debug() {
pkgdesc="Development files for libustr with debugging enabled"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libustr-debug*.so.* "$subpkgdir"/usr/lib/ || return 1
}
dev() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/share \
"$pkgdir"/usr/bin \
"$subpkgdir"/usr \
|| return 1
default_dev
}
sha512sums="b7df6ca3a9f25ee6f5c9ab4325732d348de27c5e02ebff36a7d5706f56b2df994df35bd652825a28e27bbde731c6a5933248d99c670d192b1952e7534eec1510 ustr-1.0.4.tar.bz2
3bdda468225b6361f8ae728432e9bf326047e4306924af9eb94331d44913ba5dfd2b330110c72a7210b534539183a2c95d20695ba9e585fb7f9e95aa296ad649 c99-inline.patch"
|