diff options
author | William J. Bowman | 2015-07-07 16:30:47 -0400 |
---|---|---|
committer | William J. Bowman | 2015-07-07 16:30:47 -0400 |
commit | 4d0f4f4d84fad0b3cbee702aa5cfbca36f84de05 (patch) | |
tree | 3fc215297776bdd3562a5cd58ffa0e5041d5808d | |
download | aur-4d0f4f4d84fad0b3cbee702aa5cfbca36f84de05.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | hoard.install | 17 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6cb3baa42181 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = hoard + pkgdesc = Fast scalable and memory-efficient memory allocator + pkgver = 3.10 + pkgrel = 1 + url = http://www.hoard.org/ + install = hoard.install + arch = i686 + arch = x86_64 + license = GPL + depends = gcc + source = https://github.com/emeryberger/Hoard/releases/download/3.10/Hoard-3.10-source.tar.gz + md5sums = b9376c1018c0a582c96858ffb3d01a69 + sha1sums = 7f191a1696456215acfec8483c367e199d18dbc0 + sha256sums = 9776dd824d193937fa5b079f3f16611eaac54876fecff26a6aec0adb029cbca7 + sha512sums = 0f633786175395a9fa113a0366f57345c83127a5a934ba669747c7998db14cd052160b6a9541a7fb464d32e40651884e0d22e75669c534dc7534db4532448e9f + +pkgname = hoard + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6cf383a45d64 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: William J. Bowman <bluephoenix47@gmail.com> # Contributor: Vasco Costa <vasco dot costa at geekslot dot com> +pkgname=hoard +_pkgname=Hoard +pkgver=3.10 +pkgrel=1 +pkgdesc="Fast scalable and memory-efficient memory allocator" +arch=('i686' 'x86_64') +url="http://www.hoard.org/" +license=('GPL') +depends=('gcc') +install=$pkgname.install +source=(https://github.com/emeryberger/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver-source.tar.gz) +# gnuwrapper.cpp.patch +md5sums=('b9376c1018c0a582c96858ffb3d01a69') +sha1sums=('7f191a1696456215acfec8483c367e199d18dbc0') +sha256sums=('9776dd824d193937fa5b079f3f16611eaac54876fecff26a6aec0adb029cbca7') +sha512sums=('0f633786175395a9fa113a0366f57345c83127a5a934ba669747c7998db14cd052160b6a9541a7fb464d32e40651884e0d22e75669c534dc7534db4532448e9f') + +build() { +# cp ${srcdir}/gnuwrapper.cpp.patch ${srcdir}/$_unpackaged/src + cd ${srcdir}/$_pkgname/src +# patch -p1 < gnuwrapper.cpp.patch + if [ "$CARCH" = "x86_64" ]; then + make linux-gcc-x86-64 || return 1 + else + make linux-gcc-x86 || return 1 + fi +} + +package(){ + cd ${srcdir}/$_pkgname/src + install -D -m755 libhoard.so ${pkgdir}/usr/lib/libhoard.so +} diff --git a/hoard.install b/hoard.install new file mode 100644 index 000000000000..9f97ce25d478 --- /dev/null +++ b/hoard.install @@ -0,0 +1,17 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + echo "ATTENTION HOARD:" + echo "----------" + echo "You must set LD_PRELOAD to /usr/lib/libhoard.so." + echo "You can do this manually, or uncomment the line in" + echo "/etc/profile.d/hoard.sh" + echo "----------" + echo " This package will be renamed to libhoard in the future" +} + +op=$1 +shift +$op $* |