blob: 4acc93cd7311ce44c6d42f13c12f559df79b894b (
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
35
36
37
38
39
40
41
42
|
# Maintainer: Kristian Gunstone <kristian.gunstone.butnotthispart@pean.northis.org>
pkgname=netris-git
pkgver=0.56g_1 # Is automatically updated by pkgver() below
pkgrel=1
pkgdesc="Mark H. Weaver's Netris - A networked terminal version of Tetris. This is my fork, which itself is based on Nathan Aclander's fork."
arch=('i686' 'x86_64')
url="https://github.com/gammy/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() {
cd "${pkgname}"
git fetch > /dev/null 2>&1 \
&& git describe --tags > /dev/null 2>&1 \
&& git describe --tags | cut -d '-' -f -2 > VERSION
head -n1 VERSION | tr '-' '_'
}
build() {
cd "$pkgname"
./Configure
make
}
package() {
local binpath="/usr/bin"
local manpath="/usr/share/man/man6"
mkdir -p "${pkgdir}/${binpath}" "${pkgdir}/${manpath}"
cp -v "${pkgname}/netris" "${pkgdir}/${binpath}/netris"
cp -v "${pkgname}/sr" "${pkgdir}/${binpath}/netris-sr"
gzip -c "${pkgname}/netris.6.man" > "${pkgdir}/${manpath}/netris.6.gz"
}
|