5 # PKGBUILD options/directives
9 pkgdesc="Provides newtype wrappers for phantom types to avoid unsafely passing dummy arguments"
10 url="http://github.com/ekmett/tagged"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-data-default=0.3.0"
17 "haskell-semigroups=0.8")
19 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
20 install="${pkgname}.install"
21 sha256sums=("76d44c8fd5eff2022519639795543b4c3c31a88a784e35d1f9997e5f064fac51")
25 cd ${srcdir}/${_hkgname}-${pkgver}
27 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
28 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
29 --libsubdir=\$compiler/site-local/\$pkgid
30 runhaskell Setup build
31 runhaskell Setup haddock
32 runhaskell Setup register --gen-script
33 runhaskell Setup unregister --gen-script
34 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
38 cd ${srcdir}/${_hkgname}-${pkgver}
39 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
40 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
41 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
42 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
43 runhaskell Setup copy --destdir=${pkgdir}
44 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
45 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}