updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ghc-docs / PKGBUILD
blobec301830d6426a7245aadf4dbb366d8b5bcfc530
1 #maintainer: Your Name <youremail at domain dot com>
3 pkgname=ghc-docs
4 pkgver=7.0.4
5 pkgrel=1
6 pkgdesc="Documents for the Glasgow Haskell Compiler"
7 arch=(any)
8 url="http://haskell.org/haskellwiki/GHC"
9 license=('GPL')
10 groups=()
11 depends=()
12 makedepends=()
13 optdepends=()
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 #install=$pkgname.install
20 source=(index.html
21         http://www.haskell.org/ghc/docs/$pkgver/Cabal.html.tar.bz2
22         http://www.haskell.org/ghc/docs/$pkgver/libraries.html.tar.bz2
23         http://www.haskell.org/ghc/docs/$pkgver/users_guide.html.tar.bz2
24         )
25 noextract=()
27 build() {
28   sed -i -e "s/\"libraries\/ghc-.*\"/\"libraries\/ghc-$pkgver\/index\.html\"/g" $srcdir/index.html || return 1
31 package() {
32       cd $srcdir
33       install -Dm 644 $srcdir/index.html $pkgdir/usr/share/doc/ghc/index.html || return 1
34       mv $srcdir/Cabal $pkgdir/usr/share/doc/ghc/ || return 1
35       mv $srcdir/users_guide $pkgdir/usr/share/doc/ghc/ || return 1
36       mv $srcdir/libraries $pkgdir/usr/share/doc/ghc/ || return 1
38 md5sums=('2ddd194b1dd6cad9856085cfbebcdeaa'
39          '150459b9363fb127140f4b4f55c0a838'
40          'c3f771dcc34a7eca968a2e26e6612362'
41          '0b38acdbcbc748eaeafe704359d7645f')