From c7f8ccd4e473b5ecd78ad10263b3d893a3196123 Mon Sep 17 00:00:00 2001 From: Doug Newgard Date: Sat, 12 Apr 2014 00:57:16 -0500 Subject: [PATCH] Initial PKGBUILD --- .SRCINFO | 21 +++++++++++++++++++++ .gitignore | 4 ++++ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d15ba64aa64c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = econcentration + pkgdesc = Game to improve you concentration and memory skills based on EFL + pkgver = 0.1.0alpha.r28.3257d79 + pkgrel = 1 + url = http://www.enlightenment.org + arch = i686 + arch = x86_64 + license = LGPL3 + license = FDL + license = LGPL + license = GPL + makedepends = git + depends = elementary + depends = etrophy + provides = econcentration=0.1.0alpha.r28.3257d79 + conflicts = econcentration + source = git://git.enlightenment.org/games/econcentration.git + sha256sums = SKIP + +pkgname = econcentration-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..71a9d16c2b38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +*/ +*.tar.* +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f451b855f68f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Doug Newgard + +pkgbase=econcentration +pkgname=$pkgbase-git +pkgver=0.1.0alpha.r28.3257d79 +pkgrel=1 +pkgdesc="Game to improve you concentration and memory skills based on EFL" +arch=('i686' 'x86_64') +url="http://www.enlightenment.org" +license=('LGPL3' 'FDL' 'LGPL' 'GPL') +depends=('elementary' 'etrophy') +makedepends=('git') +provides=("$pkgbase=$pkgver") +conflicts=("$pkgbase") +source=("git://git.enlightenment.org/games/$pkgbase.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgbase" + + for _i in v_maj v_min v_mic; do + local v_ver=${v_ver#.}.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*") + done + + v_ver=$(awk -F , -v v_ver=$v_ver '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac) + + printf "$v_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$pkgbase" + + export CFLAGS="$CFLAGS -fvisibility=hidden" + + ./autogen.sh \ + --prefix=/usr \ + --disable-static + + make +} + +package() { + cd "$srcdir/$pkgbase" + + make DESTDIR="$pkgdir" install + +# install text files + install -d "$pkgdir/usr/share/doc/$pkgbase/" + install -m644 -t "$pkgdir/usr/share/doc/$pkgbase/" AUTHORS ChangeLog NEWS README + +# install license files + install -d "$pkgdir/usr/share/licenses/$pkgname/" + install -m644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING_IMAGES +}