diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a2277c7e86c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = log-malloc2-git + pkgdesc = Memory allocation tracking library + pkgver = r18.dd2d44b + pkgrel = 1 + url = http://devel.dob.sk/log-malloc2/ + arch = x86_64 + license = GPL + license = LGPL + makedepends = git + depends = libunwind + source = log-malloc2::git+https://github.com/samsk/log-malloc2.git + md5sums = SKIP + +pkgname = log-malloc2-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..538a6e75b369 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk> +pkgname=log-malloc2-git +pkgver=r18.dd2d44b +pkgrel=1 +pkgdesc="Memory allocation tracking library" +arch=('x86_64') +url="http://devel.dob.sk/log-malloc2/" +license=('GPL' 'LGPL') +depends=('libunwind') +makedepends=('git') +source=('log-malloc2::git+https://github.com/samsk/log-malloc2.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname%-git}" + + # we need to fix the makefile to install the bins correctly + sed -i -e 's/"$(bindir)/"$(DESTDIR)$(bindir)/' Makefile.am +} + +build() { + cd "$srcdir/${pkgname%-git}" + ./autogen.sh + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/${pkgname%-git}" + install -d "${pkgdir}/usr/bin" + make DESTDIR="$pkgdir/" install +} |