summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormutantmonkey2013-03-02 17:53:31 -0500
committermutantmonkey2013-03-02 17:53:31 -0500
commit4e05565ea98b16840e44d01047a0f168f6a89beb (patch)
tree593e775f926f18d2b3e12690c6c92e8126977801
downloadaur-4e05565ea98b16840e44d01047a0f168f6a89beb.tar.gz
import my AUR packages into git
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD46
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a0d35b53099
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = stag-git
+ pkgdesc = A C curses based mp3/ogg/flac tagging application (git version)
+ pkgver = 62.b64612a
+ pkgrel = 1
+ url = http://cryptm.org/~sturm/stag.html
+ arch = i686
+ arch = x86_64
+ license = custom:none
+ makedepends = git
+ depends = ncurses
+ depends = taglib
+ provides = stag
+ conflicts = stag
+ options = !buildflags
+ source = git+https://github.com/smabie/stag.git
+ sha256sums = SKIP
+
+pkgname = stag-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c353146aad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: mutantmonkey <mutantmonkey@mutantmonkey.in>
+pkgname=stag-git
+pkgver=20121102
+pkgrel=1
+pkgdesc="A C curses based mp3/ogg/flac tagging application (git version)"
+arch=('i686' 'x86_64')
+url="http://cryptm.org/~sturm/stag.html"
+license=('custom:none')
+groups=()
+depends=('ncurses' 'taglib')
+makedepends=('git')
+options=('!buildflags')
+provides=('stag')
+conflicts=('stag')
+
+_gitroot=https://github.com/smabie/stag.git
+_gitname=stag
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ install -Dm 755 stag $pkgdir/usr/bin/stag
+ install -D stag.1 $pkgdir/usr/share/man/man1/stag.1
+}
+
+# vim:set ts=2 sw=2 et: