Skip to content

Instantly share code, notes, and snippets.

@shizeeg
Created March 10, 2014 07:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shizeeg/9461009 to your computer and use it in GitHub Desktop.
Save shizeeg/9461009 to your computer and use it in GitHub Desktop.
yetris Customizable Tetris(tm) for the terminal
# 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