summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b937b00cef05b7bf333f91d87024c7200efbeca (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
# Contributor: Alexandre Dantas <eu @ alexdantas DOT net>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=nsnake-git
pkgver=3.0.1.r50.gd018237
pkgrel=1
pkgdesc="The classic snake game with textual interface."
arch=('x86_64' 'i686')
url="http://www.github.com/alexdantas/nsnake/"
license=('GPLv3')
depends=('ncurses')
makedepends=('git')
conflicts=('nsnake')
source=("$pkgname::git+https://github.com/alexdantas/nsnake.git")
md5sums=('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"
  make DESTDIR="$pkgdir/" PREFIX="/usr" install
}