aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/micro-tetris/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/main/micro-tetris/APKBUILD b/main/micro-tetris/APKBUILD
index ab0c7932e..479ca4cba 100644
--- a/main/micro-tetris/APKBUILD
+++ b/main/micro-tetris/APKBUILD
@@ -10,22 +10,25 @@ depends=
makedepends=
install=
subpackages=
-source="ftp://troglobit.com/tetris/tetris-$pkgver.tar.bz2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/troglobit/tetris/archive/$pkgver.tar.gz"
+
+builddir="$srcdir"/tetris-$pkgver
-_builddir="$srcdir"/tetris-$pkgver
prepare() {
- cd "$_builddir"
+ cd "$builddir"
sed -i -e "/install/s:bin/tetris:usr/bin/tetris:" Makefile
}
build() {
- cd "$_builddir"
+ cd "$builddir"
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
}
-md5sums="759812594d3227769ee30630703695f5 tetris-1.2.1.tar.bz2"
+md5sums="c4d1e4919f76de0eae173a837b9d3925 micro-tetris-1.2.1.tar.gz"
+sha256sums="b421e788ad1c7b4cc0e2086a3170d541a1ccc993ce11e3c1434ac0b750661288 micro-tetris-1.2.1.tar.gz"
+sha512sums="05859ddfbf4a333a3d190b1bdf116b64aa0de737ff966ba4bb5eb7df27663732aae847ec96e94a2f20ed7d800c2e4b5df1eb6c0d891b27cd31ddc1456002248e micro-tetris-1.2.1.tar.gz"