summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2013-11-13 23:40:09 -0600
committerDoug Newgard2013-11-13 23:40:09 -0600
commite26ad95fdb65b6550105e4323a09ac68d2f51d85 (patch)
tree8c36bed2be180d8eff3ec259c7248b3fe270ea3f
downloadaur-e26ad95fdb65b6550105e4323a09ac68d2f51d85.tar.gz
Initial PKGBUILD
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD44
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bcc671ea7ed
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = eruler-git
+ pkgdesc = On-Screen Ruler and Measurement Tools using EFL
+ pkgver = 0.1.0.r1.3e5e849
+ pkgrel = 1
+ url = http://www.enlightenment.org
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = elementary>=1.7.99
+ provides = eruler=0.1.0.r1.3e5e849
+ conflicts = eruler
+ source = git://git.enlightenment.org/apps/eruler.git
+ sha256sums = SKIP
+
+pkgname = eruler-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..71a9d16c2b3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*~
+*/
+*.tar.*
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4fe8e87fc20
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Doug Newgard <scimmia22 at outlook dot com>
+
+pkgname=eruler-git
+_pkgname=${pkgname%-*}
+pkgver=0.1.0.r1.3e5e849
+pkgrel=1
+pkgdesc="On-Screen Ruler and Measurement Tools using EFL"
+arch=('i686' 'x86_64')
+url="http://www.enlightenment.org"
+license=('GPL')
+depends=('elementary>=1.7.99')
+makedepends=('git')
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname")
+source=("git://git.enlightenment.org/apps/$_pkgname.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ local _ver=$(awk -F , '/^AC_INIT/ {print $2}' configure.ac | tr -d '-[ ]')
+
+ echo $_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ export CFLAGS="$CFLAGS -fvisibility=hidden"
+
+ ./autogen.sh --prefix=/usr
+
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make DESTDIR="$pkgdir" install
+
+# install text files
+ install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$_pkgname/AUTHORS"
+ install -Dm644 README "$pkgdir/usr/share/doc/$_pkgname/README"
+}