aboutsummaryrefslogtreecommitdiffstats
path: root/main/micro-tetris/APKBUILD
blob: adb2774327b293df8524c471d2faf349a7dcc506 (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
# Maintainer: Natanael Copa <ncopa@alpinepinux.org>
pkgname=micro-tetris
pkgver=1.2.0
pkgrel=1
pkgdesc="Micro Tetris, based on 1989 IOCCC Obfuscated Tetris"
url="http://git.vmlinux.org/tetris.git/"
arch="all"
license="ISC"
depends=
makedepends=
install=
subpackages=
source="ftp://ftp.vmlinux.org/pub/People/jocke/micro-tetris/tetris-$pkgver.tar.bz2"

_builddir="$srcdir"/tetris-$pkgver
prepare() {
	cd "$_builddir"
	sed -i -e "/install/s:bin/tetris:usr/bin/tetris:" Makefile
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="017942718be2760f1b060e63d6799fed  tetris-1.2.0.tar.bz2"