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