summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56f2240a4ec362ff8175c94ca360217039866f7d (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
# Maintainer: Kristian Gunstone <kristian.gunstone.butnotthispart@pean.northis.org>
pkgname=netris-git
pkgver=0.52_19 # Is automatically updated by pkgver() below
pkgrel=1
pkgdesc="Mark H. Weaver's Netris -- A free networked version of T*tris. This is my (the AUR package maintainer) fork, which itself is based on Nathan Aclander's fork."
arch=('i686' 'x86_64')
url="https://github.com/naclander/netris.git"
license=('GPL2')
depends=()
makedepends=('git')
provides=()
conflicts=('netris') # Doesn't actually exist at the time of writing
                     # (the original site - netris.org - is dead)
sha1sums+=('SKIP')
md5sums=('SKIP')
source=("${pkgname}::git+https://github.com/gammy/netris.git")

pkgver() {
    head -n1 "${pkgname}/VERSION" | tr '-' '_'
}

build() {
    cd "$pkgname"
    ./Configure
    make
}

package() {
    mkdir -p "${pkgdir}/usr/bin/"
    cp -v "${pkgname}/netris" "${pkgdir}/usr/bin/netris"
    cp -v "${pkgname}/sr"     "${pkgdir}/usr/bin/netris-sr"
}