updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / cctools / PKGBUILD
blob2e04baa2bd712a8bec765aba48e6259c797352ba
1 pkgname=cctools
2 pkgver=2.0
3 pkgrel=1
4 pkgdesc="An editor for Chip's Challenge levels."
5 url="http://cctools.zrax.net/"
6 arch=(i686)
7 depends=(qt)
8 optdepends=("tworld: for playtesting")
9 makedepends=(cmake)
10 license=(GPL3)
11 install=cctools.install
12 source=("ftp://ftp.zrax.net/CCTools/$pkgname-$pkgver.tar.gz"
13         "ccedit.desktop"
14         "ccplay.desktop")
15 md5sums=('e6174ff509437b39ec4ea844e2ee5419'
16          'c49153983e8c9e1f7bc702a4264e65db'
17          '2060c86d0de0da5c5847601101f9d66b')
18 sha1sums=('5b6ddbdd6159a71cf1c2d12d2e212ba62457267f'
19           'fbc9c47f99f303cf316f97cb81cfd6ba35567364'
20           'd8b5262e7839ed5ac2ed372831677a2607eb5677')
22 build () {
23         cd $srcdir/$pkgname-$pkgver
25         cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
26         make || return 1
29 package () {
30         cd $srcdir/$pkgname-$pkgver
32         make DESTDIR=$pkgdir install
34         mkdir -p "$pkgdir"/usr/share/{pixmaps,applications}
36         install -m644 "$srcdir"/{ccedit,ccplay}.desktop "$pkgdir/usr/share/applications/"
38         install -m644 src/CCEdit/icons/boot-48.png "$pkgdir/usr/share/pixmaps/ccedit-icon.png"
39         install -m644 src/CCPlay/icons/chip-48.png "$pkgdir/usr/share/pixmaps/ccplay-icon.png"