Created
March 10, 2014 07:47
-
-
Save shizeeg/9461009 to your computer and use it in GitHub Desktop.
yetris Customizable Tetris(tm) for the terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Lucas de Sena <lucas DOT ta23 @ gmail DOT com> | |
# Developer: Alexandre Dantas <alex DOT dantas92 @ gmail DOT com> | |
# Contributor: Shizeeg Unadequatov <shizeeque @ gmail DOT com> | |
pkgname=yetris-git | |
pkgver=2.0.1.r0.g4e1be22 | |
pkgrel=2 | |
pkgdesc="Customizable Tetris(tm) for the terminal" | |
arch=('x86_64' 'i686') | |
url="http://www.github.com/alexdantas/yetris/" | |
license=('GPL3') | |
depends=('ncurses') | |
makedepends=('git') | |
conflicts=('yetris') | |
source=("$pkgname::git+https://github.com/alexdantas/yetris.git") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/${pkgname}" | |
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "${srcdir}/${pkgname}" | |
make | |
} | |
package() { | |
cd "${srcdir}/${pkgname}" | |
# By default it installs on /usr/games | |
sed -i 's/PREFIX)\/games/PREFIX)\/bin/g' Makefile | |
make DESTDIR="${pkgdir}/" PREFIX="${pkgdir}/usr" install | |
rm -rf "${pkgdir}/var" | |
chmod 0755 "${pkgdir}/usr/bin/yetris" | |
chown root:root "${pkgdir}/usr/bin/yetris" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment