|
1 xmonad-contrib |
|
2 |
|
3 diff --git a/source/custom-x11/xmonad-contrib/FrugalBuild b/source/custom-x11/xmonad-contrib/FrugalBuild |
|
4 new file mode 100644 |
|
5 index 0000000..e3fd8c1 |
|
6 --- /dev/null |
|
7 +++ b/source/custom-x11/xmonad-contrib/FrugalBuild |
|
8 @@ -0,0 +1,30 @@ |
|
9 +pkgname=xmonad-contrib |
|
10 +pkgver=0.7 |
|
11 +pkgrel=1 |
|
12 +pkgdesc="Add-ons for xmonad" |
|
13 +arch=(i686 x86_64) |
|
14 +url="http://xmonad.org/" |
|
15 +license=('BSD') |
|
16 +depends=('xmonad') |
|
17 +makedepends=('ghc' 'haskell-x11') |
|
18 +install='xmonad-contrib.install' |
|
19 +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) |
|
20 +up2date="lynx -nolist -dump '$url'|grep -A5 'extensions'|grep -m1 '$pkgname'|sed 's/.*$pkgname \([0-9.]*\) .*/\1/'" |
|
21 +archs=(i686) |
|
22 +sha1sums=('483886a74b58113e2c313934e982d22e2821dcce') |
|
23 + |
|
24 +build() { |
|
25 + Fcd |
|
26 + |
|
27 + runhaskell Setup.lhs configure --ghc --prefix=/usr \ |
|
28 + --libsubdir=\$compiler/site-local/\$pkgid || return 1 |
|
29 + |
|
30 + runhaskell Setup.lhs build || return 1 |
|
31 + |
|
32 + runhaskell Setup.lhs register --gen-script |
|
33 + runhaskell Setup.lhs unregister --gen-script |
|
34 + |
|
35 + install -D -m744 register.sh $Fdestdir/usr/share/haskell/$pkgname/register.sh |
|
36 + install -m744 unregister.sh $Fdestdir/usr/share/haskell/$pkgname/unregister.sh |
|
37 + runhaskell Setup.lhs copy --destdir=$Fdestdir |
|
38 +} |
|
39 diff --git a/source/custom-x11/xmonad-contrib/xmonad-contrib.install b/source/custom-x11/xmonad-contrib/xmonad-contrib.install |
|
40 new file mode 100644 |
|
41 index 0000000..16eca85 |
|
42 --- /dev/null |
|
43 +++ b/source/custom-x11/xmonad-contrib/xmonad-contrib.install |
|
44 @@ -0,0 +1,21 @@ |
|
45 +HS_DIR=/usr/share/haskell/xmonad-contrib |
|
46 + |
|
47 +post_install() { |
|
48 + ${HS_DIR}/register.sh |
|
49 +} |
|
50 + |
|
51 +pre_upgrade() { |
|
52 + ${HS_DIR}/unregister.sh |
|
53 +} |
|
54 + |
|
55 +post_upgrade() { |
|
56 + ${HS_DIR}/register.sh |
|
57 +} |
|
58 + |
|
59 +pre_remove() { |
|
60 + ${HS_DIR}/unregister.sh |
|
61 +} |
|
62 +op=$1 |
|
63 +shift |
|
64 + |
|
65 +$op $* |