summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoraksr2015-06-29 07:05:18 +0200
committeraksr2015-06-29 07:05:18 +0200
commit2b682239e03387e4c85a308847ebf00b0517e6a5 (patch)
tree167531796447029ecba22e292f15a7622fb44608 /PKGBUILD
downloadaur-psm-git.tar.gz
Start.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a6a0b12ce64e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=psm-git
+pkgver=0.7.6.gf1868a6
+pkgrel=1
+epoch=
+pkgdesc="Simple, accurate memory reporting for Linux."
+arch=('i686' 'x86_64')
+url="https://github.com/bpowers/psm"
+license=('MIT')
+groups=()
+depends=('')
+makedepends=('git' 'go>=2:1-2' 'asciidoc' 'xmlto')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=('psm')
+replaces=()
+backup=()
+options=()
+changelog=
+install=
+source=("$pkgname::git+https://github.com/bpowers/psm.git")
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed -E 's/--*/./g;s/^v//'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ go build
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+