mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
27 lines
1.2 KiB
Bash
27 lines
1.2 KiB
Bash
# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
|
|
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
|
|
# Package originally generated by cabal2arch 0.4.1
|
|
pkgname=haskell-zlib
|
|
pkgrel=1
|
|
pkgver=0.5.2.0
|
|
pkgdesc="Compression and decompression in the gzip and zlib formats"
|
|
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib"
|
|
license=('custom:BSD3')
|
|
arch=('i686' 'x86_64')
|
|
depends=(ghc=6.10.4 'zlib' sh)
|
|
options=('strip')
|
|
source=(http://hackage.haskell.org/packages/archive/zlib/$pkgver/zlib-$pkgver.tar.gz)
|
|
install=haskell-zlib.install
|
|
|
|
build() {
|
|
cd $startdir/src/zlib-$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
|
|
}
|
|
md5sums=('19859e241dc18ef1501a5d44d8523507')
|