diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..06f129d4dc67 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sun Jan 17 08:40:41 UTC 2016 +pkgbase = libemu-git + pkgdesc = A small library written in c offering basic x86 emulation and shellcode detection + pkgver = r572.72f073c + pkgrel = 1 + url = https://github.com/buffer/libemu + arch = i686 + arch = x86_64 + license = GPLv2+ + makedepends = git + depends = glibc + source = libemu-git::git+https://github.com/buffer/libemu.git + md5sums = SKIP + sha512sums = SKIP + +pkgname = libemu-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d516f8f6b4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: PhiBo <phibo at dinotools dot org> + +pkgname=libemu-git +pkgver=r572.72f073c +pkgrel=1 +pkgdesc="A small library written in c offering basic x86 emulation and shellcode detection" +url="https://github.com/buffer/libemu" +license=(GPLv2+) +arch=('i686' 'x86_64') +depends=(glibc) +makedepends=(git) +source=("$pkgname"::'git+https://github.com/buffer/libemu.git') +md5sums=('SKIP') +sha512sums=('SKIP') + +pkgver() { + cd "$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$srcdir/$pkgname" + + sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g ./configure.ac + autoreconf -i || return 1 + CFLAGS="${CFLAGS} -Wno-unused-local-typedefs" ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$srcdir/$pkgname" + make DESTDIR=$pkgdir install +} + |