aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xlennart/APKBUILD
blob: 4795a321fa8420857abb68a1d7934ceb5b4b0ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xlennart
pkgver=1.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="$pkgname-$pkgver.tar.gz::https://github.com/Xylemon/$pkgname/archive/$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 xlennart.desktop \
		"$pkgdir"/usr/share/applications/xlennart.desktop || return 1

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -m644 INSTALL README.md README.Ports README.Credits \
		"$pkgdir"/usr/share/doc/$pkgname || return 1
}

md5sums="139fbd10f5670882354dc0a14acbe1a4  xlennart-1.1.1.tar.gz"
sha256sums="c614db5e7cc0e64469b7dbf6957170ff14e93b580e7ca1885e94041a5102bd57  xlennart-1.1.1.tar.gz"
sha512sums="ebfb23922063a0208ab24b8c23c7a6737a2a158b549e2942f2f89b26a4972db0a12c843e5c761d6887858abc00ed9353dc6c2a816c1a3cc578f959897369a4c1  xlennart-1.1.1.tar.gz"