blob: c5d8c2abda02990bff49b6904c272bad8fd7ba61 (
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
|
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Maintainer: schuay <jakob.gruber@gmail.com>
pkgname=puzzles
pkgver=9660
pkgrel=1
pkgdesc="Simon Tatham's Portable Puzzle Collection"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
license=('MIT')
makedepends=('pkgconfig')
depends=('gtk2')
source=("http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-r${pkgver}.tar.gz")
build() {
cd ${srcdir}/${pkgname}-r${pkgver}
./mkfiles.pl
sed -i 's|\$(gamesdir)|\$(bindir)|' Makefile
export CFLAGS="$CFLAGS -lm"
make prefix=/usr
}
package() {
cd ${srcdir}/${pkgname}-r${pkgver}
install -d ${pkgdir}/usr/{bin,share/licenses/${pkgname}}
install -Dm644 LICENCE ${pkgdir}/usr/share/licenses/${pkgname}/
make prefix=/usr DESTDIR=${pkgdir} install
#fix FS#14600
mv ${pkgdir}/usr/bin/net ${pkgdir}/usr/bin/puzzles-net
mv ${pkgdir}/usr/bin/cube ${pkgdir}/usr/bin/puzzles-cube
mv ${pkgdir}/usr/bin/blackbox ${pkgdir}/usr/bin/puzzles-blackbox
}
md5sums=('06f88f737158a1d7912b20010b75d1b1')
|