summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTorin Cooper-Bennun2016-06-19 00:28:34 +0100
committerTorin Cooper-Bennun2016-06-19 00:28:34 +0100
commit2e17c24fccbbdc2db1e13b0afc515505e1828f4a (patch)
treeb66a641b9b83a33d7dcc74d8fe6b218ebe75891c /PKGBUILD
downloadaur-pacsize-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d8981770e8e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Torin Cooper-Bennun <torin.cbennun@googlemail.com>
+
+_pkgname='pacsize'
+pkgname="$_pkgname-git"
+pkgver='r2.70aab34'
+pkgrel=1
+pkgdesc='Utility that gets the installed size of pacman packages.'
+arch=('any')
+url='https://github.com/TorinCooperBennun/pacsize'
+license=('GPL')
+depends=('python' 'python-hurry-filesize')
+makedepends=('git')
+source=('git+https://github.com/TorinCooperBennun/pacsize.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ # mkdir -p "$pkgdir/usr/bin"
+ # cp pacsize "$pkgdir/usr/bin/pacsize"
+ install -D pacsize "$pkgdir/usr/bin/pacsize"
+ # chmod +x "$pkgdir/usr/bin/pacsize"
+}