Initial PKGBUILD

This commit is contained in:
Doug Newgard 2014-04-12 00:57:16 -05:00
commit c7f8ccd4e4
3 changed files with 79 additions and 0 deletions

21
.SRCINFO Normal file
View file

@ -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

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*~
*/
*.tar.*
*.log

54
PKGBUILD Normal file
View file

@ -0,0 +1,54 @@
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
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
}