updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / yi / PKGBUILD
blob8892889a84813c09adb7f7a91f09f7e9865e80e8
1 # Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2 # Package generated by cabal2arch 0.7.3
3 # Note: we list all package dependencies.
4 # Your package tool should understand 'provides' syntax
6 # Keep up to date on http://archhaskell.wordpress.com/
8 pkgname=yi
9 pkgrel=3
10 pkgver=0.6.4.0
11 pkgdesc="The Haskell-Scriptable Editor"
12 url="http://hackage.haskell.org/package/yi"
13 license=('GPL')
14 arch=('i686' 'x86_64')
15 makedepends=()
16 depends=('gmp' 'ghc' 'haskell-cabal' 'haskell-cabal' 'haskell-diff-legacy' 'haskell-quickcheck>=2.1.0.2' 'haskell-array' 'haskell-binary' 'haskell-bytestring' 'haskell-cautious-file' 
17 'haskell-containers' 'haskell-data-accessor' 'haskell-data-accessor-monads-fd' 'haskell-data-accessor-template' 'haskell-derive-legacy' 'haskell-directory' 'haskell-dlist>=0.4.1' 'haskell-dyre>=0.7' 'haskell-filepath' 'haskell-fingertree<0.1' 'haskell-gconf' 'haskell-ghc-paths' 'haskell-glib' 'haskell-gtk' 'haskell-hint>0.3.1' 'haskell-monads-fd' 'haskell-old-locale' 'haskell-pointedlist-legacy' 'haskell-process' 'haskell-puremd5>=0.2.3' 'haskell-random' 'haskell-regex-base' 'haskell-regex-tdfa' 'haskell-rosezipper-legacy' 'haskell-split' 'haskell-template-haskell' 'haskell-time' 'haskell-uniplate' 'haskell-unix' 'haskell-unix-compat-legacy' 'haskell-utf8-string>=0.3.1' 'haskell-vty' 'alex' 'haskell-hashable' 'haskell-unordered-containers')
18 options=('strip')
19 source=(http://hackage.haskell.org/packages/archive/yi/$pkgver/yi-$pkgver.tar.gz)
20 md5sums=('26f9f185b085576605b440612316d0cc')
21 install=yi.install
22 build() {
23     cd ${srcdir}/yi-$pkgver
24     runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}
25     runhaskell Setup build
26 #    runhaskell Setup haddock
27     runhaskell Setup register   --gen-script
28     runhaskell Setup unregister --gen-script
29     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
30     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
31     install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
32     ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/yi
33     runhaskell Setup copy --destdir=${pkgdir}