1 # Maintainer: Christoffer Öjeling <christoffer@ojeling.net>
5 pkgdesc="Server and community browser for the game Tremulous"
6 url="http://ojeling.net/apelsin"
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')
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')
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
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"
31 install -D -m644 "$srcdir/apelsin.desktop" "$pkgdir/usr/share/applications/apelsin.desktop"