diff options
author | Gonzalo Exequiel Pedone | 2024-02-28 13:06:18 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-02-28 13:06:18 -0300 |
commit | b73c5068f4738e0f58243149af086afa58a4cf49 (patch) | |
tree | 758512d73e69e3ca17482f8742c50031f3639d2d | |
download | aur-b73c5068f4738e0f58243149af086afa58a4cf49.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8eede286745d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = android-x86-jemalloc + pkgdesc = General-purpose scalable concurrent malloc implementation (android) + pkgver = 5.3.0 + pkgrel = 1 + url = http://www.canonware.com/jemalloc/ + arch = any + license = BSD + makedepends = android-configure + depends = android-ndk + optdepends = perl: for jeprof + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 + sha256sums = 2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa + +pkgname = android-x86-jemalloc diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b5b03b115225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..55378997093d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor: Kovivchak Evgen <oneonfire@gmail.com> + +_android_arch=x86 + +pkgname=android-${_android_arch}-jemalloc +pkgver=5.3.0 +pkgrel=1 +pkgdesc='General-purpose scalable concurrent malloc implementation (android)' +arch=('any') +license=('BSD') +url='http://www.canonware.com/jemalloc/' +depends=('android-ndk') +makedepends=('android-configure') +optdepends=('perl: for jeprof') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/jemalloc/jemalloc/releases/download/${pkgver}/jemalloc-${pkgver}.tar.bz2") +sha256sums=('2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa') + +build() { + cd "${srcdir}/jemalloc-$pkgver" + source android-env ${_android_arch} + + android-${_android_arch}-configure \ + --enable-prof \ + --enable-autogen \ + --with-jemalloc-prefix=je_ + make $MAKEFLAGS +} + +package() { + cd "${srcdir}/jemalloc-$pkgver" + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}" + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |