blob: 417cc14c552a635c3075cce7e4a0d38b836d8a98 (
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
|
# Maintainer: Kristian Gunstone <kristian.gunstone.butnotthispart@pean.northis.org>
pkgname=netris-git
pkgver=0.55g # Is automatically updated by pkgver() below
pkgrel=2
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() {
mkdir -p "${pkgdir}/usr/bin/"
cp -v "${pkgname}/netris" "${pkgdir}/usr/bin/netris"
cp -v "${pkgname}/sr" "${pkgdir}/usr/bin/netris-sr"
}
|