summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c2da9fdd7421a48fdd860f9b027899fab359865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Maintainer: anon at sansorgan.es
_hkgname=arbtt
pkgname=arbtt
pkgver=0.10.2
pkgrel=6
pkgdesc="Automatic Rule-Based Time Tracker"
url="https://hackage.haskell.org/package/arbtt"
license=('GPL2')
arch=('i686' 'x86_64')
provides=('haskell-arbtt')
conflicts=('haskell-arbtt')
depends=('ghc'
'haskell-aeson<=1.5'
'haskell-aeson>=0.1'
'haskell-bytestring-progress'
'haskell-conduit'
'haskell-pcre-light'
'haskell-strict'
'haskell-terminal-progress-bar<0.5.0'
'haskell-terminal-progress-bar>=0.4.0'
'haskell-terminal-size'
'haskell-utf8-string'
'haskell-x11'
) 
makedepends=('ghc'
		'cabal-install'
		'haskell-aeson>=0.1'
		'haskell-aeson<1.5'
		'haskell-base<5'
		'haskell-base>=4.7'
		'haskell-binary>=0.5'
		'haskell-bytestring'
		'haskell-bytestring-progress'
		'haskell-conduit'
		'haskell-containers>=0.5'
		'haskell-containers<0.75'
		'haskell-deepseq'
		'haskell-directory'
		'haskell-exceptions>0.8'
		'haskell-filepath'
		'haskell-mtl'
		'haskell-parsec>=3.0'
		'haskell-parsec<4.0'
		'haskell-pcre-light'
		'haskell-resourcet>=1.2'
		'haskell-strict'
		'haskell-time'
		'haskell-terminal-progress-bar>=0.4.0'
		'haskell-terminal-progress-bar<0.5.0'
		'haskell-text'
		'haskell-transformers'
		'haskell-utf8-string'
		'haskell-unliftio-core'
		'haskell-unix'
		'haskell-x11'
)
options=('strip')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)


build() {
    cd ${srcdir}/${_hkgname}-${pkgver}
    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
	
	runhaskell Setup build
	runhaskell Setup register --gen-script
	runhaskell Setup unregister --gen-script
}

package() {
    cd ${srcdir}/${_hkgname}-${pkgver}
	runhaskell Setup copy --destdir="${pkgdir}"
	install -Dm 644 arbtt-capture.desktop  "${pkgdir}/usr/share/applications/arbtt-capture.desktop"
	install -Dm 644 categorize.cfg "${pkgdir}/usr/share/${pkgname}/categorize.cfg"
	install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/arbtt"
}
md5sums=('1b2fe0992719512d8e7b0c47ec0cc16c')