summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Price2015-08-03 21:59:10 +0100
committerWill Price2015-08-03 21:59:41 +0100
commitb0527ff76e25dd62391cfb38f64ab267b7495210 (patch)
treef73e92aa3192794413714675d75de5fc8beae5aa
downloadaur-b0527ff76e25dd62391cfb38f64ab267b7495210.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b790be8648e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = pug-git
+ pkgdesc = Quickly update local projects and their dependencies with a single command
+ pkgver = v0.4.0.2
+ pkgrel = 1
+ url = https://github.com/ashur/pug
+ arch = any
+ license = github
+ depends = php
+ optdepends = git
+ optdepends = subversion
+ optdepends = composer
+ source = pug::git+https://github.com/ashur/pug.git
+ md5sums = SKIP
+
+pkgname = pug-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b262914e936
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Will Price <will.price94+aur@gmail.com>
+pkgname=pug-git
+pkgver() {
+ cd "${pkgname%%-git}"
+ git describe --long | sed -r 's/-([0-9,a-g,A-G]{7}.*)//' | sed 's/-/./'
+}
+pkgver=v0.4.0.2
+pkgrel=1
+pkgdesc="Quickly update local projects and their dependencies with a
+single command"
+arch=('any')
+url="https://github.com/ashur/pug"
+license=('github')
+depends=('php')
+optdepends=('git' 'subversion' 'composer')
+md5sums=('SKIP')
+source=("${pkgname%%-git}::git+https://github.com/ashur/pug.git")
+prepare() {
+ cd "$srcdir/${pkgname%%-git}"
+ git submodule init
+ git submodule update
+}
+
+package() {
+ cd "$srcdir/${pkgname%%-git}"
+ mkdir -p "$pkgdir"/usr/{bin,share/pear}
+ cp -r "$srcdir/${pkgname%%-git}" "$pkgdir/usr/share/pear/"
+ ln -s /usr/share/pear/pug/pug "$pkgdir/usr/bin"
+}