# Maintainer: Natanael Copa <ncopa@alpinepinux.org>
pkgname=micro-tetris
pkgver=1.2.1
pkgrel=0
pkgdesc="Micro Tetris, based on 1989 IOCCC Obfuscated Tetris"
url="https://github.com/troglobit/tetris"
arch="all"
license="ISC"
depends=
makedepends=
install=
subpackages=
source="ftp://troglobit.com/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="759812594d3227769ee30630703695f5  tetris-1.2.1.tar.bz2"