5 # PKGBUILD options/directives
6 pkgname=haskell-byteorder
9 pkgdesc="Exposes the native endianness or byte ordering of the system."
10 url="http://community.haskell.org/~aslatter/code/byteorder"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2" "sh")
16 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
17 install="${pkgname}.install"
18 sha256sums=("5ef1125f2c6506ba6303f59f3265b4d0caaa6dbe897cf14dac715e920f59d214")
22 cd ${srcdir}/${_hkgname}-${pkgver}
24 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
25 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
26 --libsubdir=\$compiler/site-local/\$pkgid
27 runhaskell Setup build
28 runhaskell Setup haddock
29 runhaskell Setup register --gen-script
30 runhaskell Setup unregister --gen-script
31 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
35 cd ${srcdir}/${_hkgname}-${pkgver}
36 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
37 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
38 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
39 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
40 runhaskell Setup copy --destdir=${pkgdir}
41 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
42 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}