diff options
author | Aleksy Grabowski | 2021-02-07 16:23:23 +0100 |
---|---|---|
committer | Aleksy Grabowski | 2021-02-07 19:21:20 +0100 |
commit | 362bad099aa5f4336a7fe3a3b6b8b6d3e74b9eef (patch) | |
tree | dbe58c110eafd0f5be74dc7062ff7e21655be25c /PKGBUILD | |
download | aur-362bad099aa5f4336a7fe3a3b6b8b6d3e74b9eef.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42c0c8ff913b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |