PKGBUILDs/extra/haskell-utf8-string/PKGBUILD
2009-10-09 21:23:22 -05:00

27 lines
1.2 KiB
Bash

# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
# Package generated by cabal2arch 0.4.1
pkgname=haskell-utf8-string
pkgver=0.3.5
pkgrel=1.1
pkgdesc="Support for reading and writing UTF8 Strings"
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc' 'haskell-cabal' sh)
options=('strip')
install=haskell-utf8-string.install
source=(http://hackage.haskell.org/packages/archive/utf8-string/$pkgver/utf8-string-$pkgver.tar.gz)
md5sums=('d5198209bd81ea4f8af7692e2467336c')
build() {
cd $startdir/src/utf8-string-$pkgver
runhaskell Setup configure --prefix=/usr || return 1
runhaskell Setup build || return 1
runhaskell Setup register --gen-script || return 1
runhaskell Setup unregister --gen-script || return 1
install -D -m744 register.sh $startdir/pkg/usr/share/haskell/$pkgname/register.sh
install -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh
runhaskell Setup copy --destdir=$startdir/pkg || return 1
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
}