diff options
author | ozgursarier | 2015-09-18 17:25:55 +0300 |
---|---|---|
committer | ozgursarier | 2015-09-18 17:25:55 +0300 |
commit | a338cce9f3ef10ec1279fc6d8959bfeeadc34956 (patch) | |
tree | f28273beb69b6676a19258d53e5c7ccb9f0c9b7b /PKGBUILD | |
download | aur-a338cce9f3ef10ec1279fc6d8959bfeeadc34956.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..8cc4d986ce26 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer : Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d> +# Contributor: Eric Forgeot < http://esclinux.tk > + +pkgname=phlipple-svn +pkgver=0.8.6.r10 +pkgrel=1 +pkgdesc="A puzzle game which goal is to reduce a 3D shape to a single square. Elimination of squares is done by flipping edges around just like in a cardboard box." +arch=("i686" "x86_64") +url="http://sourceforge.net/projects/phlipple/" +license=('GPLv3') +depends=('sdl' 'sdl_mixer' 'sdl_image' 'glew' 'libvorbis') +provides=("phlipple") +conflicts=("phlipple") +source=("phlipple::svn://svn.code.sf.net/p/phlipple/code/trunk" + 'libm.patch') +md5sums=('SKIP' + '3bc553faf4501f016ab0dd03307c4547') + +pkgver() { + cd "$srcdir/${pkgname%-*}" + local ver="$(svnversion)" + conf_ver=`sed -n 's/)$//g;s/^AC_INIT(phlipple, //p' configure.ac` + printf "${conf_ver:0:5}.r%s" "${ver//[[:alpha:]]}" +} + +prepare() { + cd "$srcdir/${pkgname%-*}" + patch -Np1 -i "${srcdir}/libm.patch" +} + +build() { + cd "$srcdir/${pkgname%-*}" + ./configure --prefix="/usr" + make +} + +package() { + cd "$srcdir/${pkgname%-*}" + make DESTDIR="${pkgdir}" install +} |