blob: 42c0c8ff913b527bdd048005a5e9e8a71a514170 (
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
|
# Maintainer: Aleksy Grabowski <hurufu@gmail.com>
pkgname=libptmalloc3
pkgver=3
pkgrel=1
pkgdesc='A multi-thread malloc and memory pool implementation'
arch=('i686' 'x86_64')
url='http://www.malloc.de/'
license=('custom')
makedepends=(
make
gcc
)
source=(
"$url/malloc/ptmalloc3-current.tar.gz"
'Makefile.patch'
)
md5sums=(
c0b9dd5f16f8eae979166dc74b60015c
1c223c6d09c407d6a971ffb98330f632
)
sha1sums=(
50b9cd2e0cc0c9bc1856eab19d4051a62195560f
32c08c9daa7697f0011a99151b376a8035145600
)
prepare() {
patch 'ptmalloc3/Makefile' Makefile.patch
}
build() {
make -C 'ptmalloc3' OPT_FLAGS="$CPPFLAGS $CFLAGS $LDFLAGS" linux-shared
}
check() {
make -C 'ptmalloc3' -k check
}
package() {
cd 'ptmalloc3'
install -Dm755 -t "$pkgdir/usr/lib" libptmalloc3.so
install -Dm644 -t "$pkgdir/usr/lib" libptmalloc3.a
install -Dm644 -T malloc-2.8.3.h "$pkgdir/usr/include/ptmalloc3.h"
install -Dm444 -t "$pkgdir/usr/share/licenses/ptmalloc3" COPYRIGHT
}
|