# Maintainer: Natanael Copa pkgname=xlennart pkgver=1.1 pkgrel=0 pkgdesc="Game - Save the UNIX world" url="https://github.com/Xylemon/xlennart" arch="all" license="GPLv2" depends="" depends_dev="" makedepends="$depends_dev gtk+2.0-dev" install="" subpackages="$pkgname-doc" source="xlennart-$pkgver.tar.gz::https://github.com/Xylemon/xlennart/archive/$pkgver.tar.gz" _builddir="$srcdir"/xlennart-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -D xlennart.desktop "$pkgdir"/usr/share/applications/xlennart.desktop } md5sums="78a6bfe59db7560dbd00729e5e9cdb61 xlennart-1.1.tar.gz" sha256sums="52cfc4b88ec38abee8654c6f41bec709bb881067f098607b2dc2e05a7962516c xlennart-1.1.tar.gz" sha512sums="c0f30169a1809ad05573202a28b7df8938c85d7ac201514f41bc9f1ce6ae78bbeb62358a8779ad2821cab73e2a6c1dcd1e36d758d2959dafe641844a51966fb4 xlennart-1.1.tar.gz"