Created
July 1, 2015 04:03
-
-
Save LeifW/1486862591fe89cd27f9 to your computer and use it in GitHub Desktop.
Current haskell-reflection PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Leif Warner <[email protected]> | |
| _hkgname=reflection | |
| pkgname=haskell-reflection | |
| pkgver=1.5.2.1 | |
| pkgrel=1 | |
| pkgdesc="Reifies arbitrary terms into types that can be reflected back into terms" | |
| url="http://hackage.haskell.org/package/${_hkgname}" | |
| license=('custom:BSD3') | |
| arch=('i686' 'x86_64') | |
| depends=('ghc' 'haskell-tagged<1' 'haskell-template-haskell') | |
| options=('staticlibs') | |
| source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) | |
| install=${pkgname}.install | |
| md5sums=('9ea8d1487b2b12e88ffa54e72265a6a2') | |
| build() { | |
| cd ${srcdir}/${_hkgname}-${pkgver} | |
| runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \ | |
| --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid | |
| runhaskell Setup build | |
| runhaskell Setup haddock | |
| runhaskell Setup register --gen-script | |
| runhaskell Setup unregister --gen-script | |
| sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh | |
| } | |
| package() { | |
| cd ${srcdir}/${_hkgname}-${pkgver} | |
| install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh | |
| install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh | |
| install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries | |
| ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} | |
| runhaskell Setup copy --destdir=${pkgdir} | |
| install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE | |
| rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment