summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a01b5dc87ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Marcos Ferreira <merkkp at gmail dot com>
+
+_gitname="bpkg"
+pkgname="${_gitname}-git"
+pkgver=0.2.8.21.gc1f0cd3
+pkgrel=1
+pkgdesc="Lightweight bash package manager"
+arch=("any")
+url="https://bpkg.io"
+license=("MIT")
+depends=("bash")
+makedepends=("git")
+provides=("${_gitname}")
+conflicts=("${_gitname}")
+source=("git+https://github.com/bpkg/${_gitname}")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "${_gitname}"
+ git describe --tags --long | sed 's/^v//;s/-/./;s/-/./g'
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ PREFIX="${pkgdir}/usr" ./setup.sh
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: