summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93c8a88a42f7e7b9e51b37748aeb05ec9b319657 (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
32
33
34
# Contributor: Lucas de Sena <lucas DOT ta23 @ gmail DOT com>
# Maintainer: Alexandre Dantas <eu @ alexdantas DOT net>
# Contributor: Shizeeg Unadequatov <shizeeque @ gmail DOT com>

pkgname=yetris-git
pkgver=20150103
pkgrel=1
pkgdesc="Customizable Tetris(tm) for the terminal - unstable development version"
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'
  git log -1 --date=short | grep 'Date:' | sed 's|[^0-9]||g'
}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  make DESTDIR="$pkgdir" PREFIX="/usr/local" install
}