PKGBUILD-haskell.proto 1.34 KB
Newer Older
1
2
3
4
5
6
7
8
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/Haskell_package_guidelines for more
# information on Haskell packaging.

9
# Maintainer: Your Name <youremail@domain.com>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pkgname=NAME
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/***"
license=('GPL')
depends=()
makedepends=('ghc')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://hackage.haskell.org/packages/archive/***/$pkgver/***-$pkgver.tar.gz)
md5sums=()

build() {
  cd "$srcdir/***-$pkgver"

31
32
  runhaskell Setup configure --prefix=/usr --enable-executable-stripping
  runhaskell Setup build
33
34

  #
matt mooney's avatar
matt mooney committed
35
36
  # Setup registration phase for library packages. This also requires an install
  # script; see proto-haskell.install.
37
  #
38
39
  runhaskell Setup register --gen-script
  runhaskell Setup unregister --gen-script
40
41
42
43
44
45
}

package() {
  cd "$srcdir/***-$pkgver"
  runhaskell Setup copy --destdir="$pkgdir/"

matt mooney's avatar
matt mooney committed
46
47
  install -Dm744 register.sh "$pkgdir/usr/share/haskell/$pkgname/register.sh"
  install -m744 unregister.sh "$pkgdir/usr/share/haskell/$pkgname/unregister.sh"
48
49
50
}

# vim:set ts=2 sw=2 et: