summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2014-08-29 08:34:37 -0500
committerDoug Newgard2014-08-29 08:34:37 -0500
commit43671567e69d43a0f761a2dfff169a527abdccdf (patch)
treec765bf3af2069e03ac6a22e8352ab527b828985f
downloadaur-43671567e69d43a0f761a2dfff169a527abdccdf.tar.gz
Initial PKGBUILD
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD64
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5ee7cb01650
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = edgar-git
+ pkgdesc = Enlightenment module: Load Python gadgets
+ pkgver = 0.2.0.r5.af2bd6a
+ pkgrel = 1
+ url = https://git.enlightenment.org/enlightenment/modules/edgar.git
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ license = LGPL3
+ makedepends = git
+ depends = enlightenment
+ depends = python-efl
+ provides = edgar=0.2.0.r5.af2bd6a
+ conflicts = edgar
+ source = git://git.enlightenment.org/enlightenment/modules/edgar.git
+ sha256sums = SKIP
+
+pkgname = edgar-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..5b7030bc9d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Doug Newgard <scimmia at archlinux dot info>
+
+_pkgname=edgar
+pkgname=$_pkgname-git
+pkgver=0.2.0.r5.af2bd6a
+pkgrel=1
+pkgdesc="Enlightenment module: Load Python gadgets"
+arch=('i686' 'x86_64')
+url="https://git.enlightenment.org/enlightenment/modules/edgar.git"
+license=('GPL3' 'LGPL3')
+depends=('enlightenment' 'python-efl')
+makedepends=('git')
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname")
+source=("git://git.enlightenment.org/enlightenment/modules/$_pkgname.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ local v_ver=$(awk -F , '/^AC_INIT/ {gsub(/[\[\] -]/, ""); print $2}' configure.ac)
+
+ printf "$v_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ find "$srcdir/$_pkgname/GADGETS" -name Makefile -exec sed -i '/^gadget_folder/ s/ = /&${DESTDIR}/' {} \;
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ ./autogen.sh \
+ --prefix=/usr \
+ --disable-static
+
+ make
+
+ pushd GADGETS
+ for _gadget in *; do
+ pushd $_gadget
+ make
+ popd
+ done
+ popd
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make DESTDIR="$pkgdir" install
+
+ pushd GADGETS
+ for _gadget in *; do
+ pushd $_gadget
+ make DESTDIR="$pkgdir" install
+ popd
+ done
+ popd
+
+# install text files
+ install -d "$pkgdir/usr/share/doc/$_pkgname/"
+ install -m644 -t "$pkgdir/usr/share/doc/$_pkgname/" AUTHORS ChangeLog NEWS README
+}