|
1 haskel-x11 |
|
2 |
|
3 diff --git a/source/custom/haskel-x11/FrugalBuild b/source/custom/haskel-x11/FrugalBuild |
|
4 new file mode 100644 |
|
5 index 0000000..035cba9 |
|
6 --- /dev/null |
|
7 +++ b/source/custom/haskel-x11/FrugalBuild |
|
8 @@ -0,0 +1,31 @@ |
|
9 +pkgname=haskell-x11 |
|
10 +pkgver=1.4.2 |
|
11 +pkgrel=1 |
|
12 +pkgdesc="A Haskell binding to the X11 graphics library." |
|
13 +arch=(i686 x86_64) |
|
14 +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11" |
|
15 +license=('BSD') |
|
16 +makedepends=('ghc') |
|
17 +conflicts=(haskell-x11-extras) |
|
18 +install=hsmod.install |
|
19 +source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz) |
|
20 +archs=(i686) |
|
21 +sha1sums=('28f5a257b9f601538822f47c9731b6e20618fbcf') |
|
22 + |
|
23 +build() { |
|
24 + cd $Fsrcdir/X11-$pkgver || Fdie |
|
25 + |
|
26 + runhaskell Setup.hs configure --ghc --prefix=/usr \ |
|
27 + --libsubdir=\$compiler/site-local/\$pkgid || return 1 |
|
28 + |
|
29 + runhaskell Setup.hs build || return 1 |
|
30 + |
|
31 + runhaskell Setup.hs register --gen-script |
|
32 + runhaskell Setup.hs unregister --gen-script |
|
33 + |
|
34 + install -D -m744 register.sh $Fdestdir/usr/share/haskell/$pkgname/register.sh |
|
35 + install -m744 unregister.sh $Fdestdir/usr/share/haskell/$pkgname/unregister.sh |
|
36 + runhaskell Setup.hs copy --destdir=$Fdestdir || Fdie |
|
37 + |
|
38 + install -D -m644 LICENSE $Fdestdir/usr/share/licenses/$pkgname/BSD3 |
|
39 +} |
|
40 diff --git a/source/custom/haskel-x11/hsmod.install b/source/custom/haskel-x11/hsmod.install |
|
41 new file mode 100644 |
|
42 index 0000000..e417f26 |
|
43 --- /dev/null |
|
44 +++ b/source/custom/haskel-x11/hsmod.install |
|
45 @@ -0,0 +1,22 @@ |
|
46 +HS_DIR=/usr/share/haskell/haskell-x11 |
|
47 + |
|
48 +post_install() { |
|
49 + ${HS_DIR}/register.sh |
|
50 +} |
|
51 + |
|
52 +pre_upgrade() { |
|
53 + ${HS_DIR}/unregister.sh |
|
54 +} |
|
55 + |
|
56 +post_upgrade() { |
|
57 + ${HS_DIR}/register.sh |
|
58 +} |
|
59 + |
|
60 +pre_remove() { |
|
61 + ${HS_DIR}/unregister.sh |
|
62 +} |
|
63 + |
|
64 +op=$1 |
|
65 +shift |
|
66 + |
|
67 +$op $* |