updated on Thu Jan 12 12:00:22 UTC 2012
[aur-mirror.git] / apelsin / PKGBUILD
blob477b0aa89641ce407b990bae1c490ad5c17ff46f
1 # Maintainer: Christoffer Ã–jeling <christoffer@ojeling.net>
2 pkgname=apelsin
3 pkgver=1.1
4 pkgrel=3
5 pkgdesc="Server and community browser for the game Tremulous"
6 url="http://ojeling.net/apelsin"
7 license=('GPL3')
8 arch=('i686' 'x86_64')
9 makedepends=('ghc' 'haskell-http=4000.1.1' 'haskell-array=0.3.0.2' 'haskell-bytestring=0.9.1.10' 'haskell-containers=0.4.0.0' 'haskell-directory=1.1.0.0' 'haskell-filepath=1.2.0.0' 'gtk2hs-glib' 'gtk2hs-gtk' 'gtk2hs-pango' 'gtk2hs-buildtools' 'haskell-mtl=2.0.1.0' 'haskell-network=2.3.0.2' 'haskell-process=1.0.1.5' 'haskell-stm=2.2.0.1' 'haskell-transformers=0.2.2.0' 'haskell-tremulous-query>=1.0.3')
10 depends=('gmp' 'gtk2' 'hicolor-icon-theme')
11 options=('strip')
12 install="${pkgname}.install"
13 source=(http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz 'apelsin.desktop')
14 md5sums=('dbc0bdc2f533fe303404804a89cbc69f'
15          'f2dab889c0b64afbe59ecccf48f56785')
17 build() {
18     cd ${srcdir}/${pkgname}-${pkgver}
19     # subdir is somewhat of a hack to set the path for the icons correctly
20     runhaskell Setup configure --prefix=/usr --datasubdir='' -O
21     runhaskell Setup build
23 package() {
24     cd ${srcdir}/${pkgname}-${pkgver}
25     install -D -m755 "dist/build/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
27     for i in 16 22 24 32 48 64 128 256; do
28         install -D -m644  "share/icons/hicolor/${i}x${i}/apps/${pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
29     done
31     install -D -m644 "$srcdir/apelsin.desktop" "$pkgdir/usr/share/applications/apelsin.desktop"