summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex W2015-06-30 17:08:27 +0100
committerAlex W2015-06-30 17:08:27 +0100
commitfbc9b862184e466c85426ffc78cb45a4820eb6c9 (patch)
treef147281f68400af8f97cab2aaabf1cc3845a7d78
downloadaur-fbc9b862184e466c85426ffc78cb45a4820eb6c9.tar.gz
init
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8f48e458a97
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = pup-git
+ pkgdesc = Parsing HTML at the command line
+ pkgver = r68.17ba91a
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/EricChiang/pup
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = mercurial
+ makedepends = go
+ provides = pup
+ conflicts = pup
+ source = git://github.com/EricChiang/pup.git
+ md5sums = SKIP
+
+pkgname = pup-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f4285c7592c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: awh
+
+pkgname=pup-git
+_gitname="pup"
+_gourl="github.com/ericchiang/pup"
+pkgver=r68.17ba91a
+pkgrel=1
+epoch=1
+pkgdesc="Parsing HTML at the command line"
+arch=('i686' 'x86_64')
+url="https://github.com/EricChiang/pup"
+license=('GPL2')
+provides=('pup')
+conflicts=('pup')
+makedepends=('git' 'mercurial' 'go')
+source=('git://github.com/EricChiang/pup.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd $_gitname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ GOPATH="$srcdir" go get -fix -v -x ${_gourl}
+}
+
+check() {
+ GOPATH="$GOPATH:$srcdir" go test -v -x ${_gourl}
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin"
+ install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
+
+ # Package license (if available)
+ for f in LICENSE COPYING LICENSE.* COPYING.*; do
+ if [ -e "$srcdir/src/$_gourl/$f" ]; then
+ install -Dm644 "$srcdir/src/$_gourl/$f" \
+ "$pkgdir/usr/share/licenses/$_gitname/$f"
+ fi
+ done
+}