diff options
author | Matthew McGinn | 2019-10-22 14:03:08 +0200 |
---|---|---|
committer | Matthew McGinn | 2019-10-22 14:03:16 +0200 |
commit | 174270d78894e59627f26b30899b81e7c72a5b7e (patch) | |
tree | 8acdd03c068d1ac0da81c2a08449a382b026fa5f | |
download | aur-174270d78894e59627f26b30899b81e7c72a5b7e.tar.gz |
initial commit
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..115bd94997ab --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = ply-git + pkgdesc = A light-weight dynamic tracer for Linux + pkgver = r322.aa5b9ac + pkgrel = 1 + url = https://github.com/iovisor/ply + arch = x86_64 + license = BSD + provides = ply + source = git+https://github.com/iovisor/ply + md5sums = SKIP + +pkgname = ply-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..001783df62ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +ply/ +*.tgz +*.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..15653d91e154 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Matthew McGinn <mamcgi@gmail.com> +pkgname=ply-git +_pkgname=ply +pkgrel=1 +pkgver=r322.aa5b9ac +pkgdesc="A light-weight dynamic tracer for Linux" +arch=('x86_64') +url="https://github.com/iovisor/ply" +license=('BSD') +provides=('ply') +source=("git+https://github.com/iovisor/${_pkgname}") +md5sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + set -o pipefail + git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname}" + ./autogen.sh # to generate the configure script + ./configure --prefix=/usr --sbindir=/usr/bin + make +} + +package() { + cd "${_pkgname}" + make DESTDIR="${pkgdir}/" install +} |