summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormorning_star2015-06-15 11:05:36 -0400
committermorning_star2015-06-15 11:05:36 -0400
commitf3ef9d0c422ca7fd1dad947e7eb031f183e86ed9 (patch)
tree573fbf28300c947b10eac3c2f0fd54f1d223908f
downloadaur-f3ef9d0c422ca7fd1dad947e7eb031f183e86ed9.tar.gz
Initial import
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD41
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..feb664a8811
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = mounter2-git
+ pkgdesc = A simple gtk app to mount iso files
+ pkgver = f254a261.4.2
+ pkgrel = 2
+ url = https://sourceforge.net/projects/mounter2/
+ arch = any
+ license = GPL 2.1
+ makedepends = git
+ depends = udevil
+ depends = gtk2
+
+pkgname = mounter2-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a670d4f9919
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: morning_star <livef3@aol.com>
+pkgname=mounter2-git
+pkgver=f254a261.4.2
+pkgrel=2
+pkgdesc="A simple gtk app to mount iso files"
+arch=('any')
+url="https://sourceforge.net/projects/mounter2/"
+license=('GPL 2.1')
+depends=('udevil' 'gtk2')
+makedepends=('git')
+conflicts=()
+provides=()
+
+_gitname="mounter2"
+_gitroot="https://github.com/dreemsoul/mounter2"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ echo $(git describe --always | sed 's/-/./g')
+}
+
+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 --depth=1 $_gitroot $_gitname
+ fi
+ msg "GIT checkout done or server timeout"
+}
+
+
+package() {
+ cd "$srcdir/$_gitname"
+ mkdir -p $pkgdir/usr/bin
+ make -f makefile
+ cp mounter2 $pkgdir/usr/bin/
+ chmod +x $pkgdir/usr/bin/
+}