blob: cb6f2c228a87a52dd4ff4333552b9a59593e2bf0 (
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
|
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Sam Stuewe <halosghost at archlinux dot info>
_name=tty-solitaire
pkgname="${_name}-git"
pkgver=1.3.1.r9.gef83b74
pkgrel=1
epoch=1
pkgdesc='An ncurses-based Klondike solitaire clone'
arch=('i686' 'x86_64')
url='https://github.com/mpereira/tty-solitaire'
license=('MIT')
makedepends=('git')
conflicts=('tty-solitaire')
replaces=('tty-solitaire')
depends=('ncurses')
source=("${_name}"::"git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-48
}
build() {
cd "${srcdir}/${_name}"
make
}
package() {
cd "${srcdir}/${_name}"
make DESTDIR="${pkgdir}" PREFIX="/usr" install
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
|