Skip to content

Instantly share code, notes, and snippets.

@LeifWarner
Created November 28, 2012 01:49
Show Gist options
  • Save LeifWarner/4158545 to your computer and use it in GitHub Desktop.
Save LeifWarner/4158545 to your computer and use it in GitHub Desktop.
idris.PKGBUILD
# Maintainer: Leif Warner <abimelech@gmail.com>
pkgname=idris
pkgver=0.9.5.1
pkgrel=1
pkgdesc="Functional Programming Language with Dependent Types"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=('ghc' 'haskell-cabal' 'haskell-binary' 'haskell-bytestring' 'haskell-containers' 'haskell-directory' 'haskell-filepath' 'haskell-haskeline' 'haskell-mtl' 'haskell-parsec' 'haskell-pretty' 'haskell-process' 'haskell-transformers')
depends=('gmp')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz)
md5sums=('087ac48f7e23b1faab7c82ddbbba20ed')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O
runhaskell Setup build
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
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