forked from fosskers/aura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
62 lines (54 loc) · 2.05 KB
/
PKGBUILD
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
# Maintainer: Colin Woodbury <[email protected]>
_hkgname=aura
pkgname=aura
pkgver=1.3.0.2
pkgrel=1
pkgdesc="A secure package manager for Arch Linux and the AUR written in Haskell."
url="https://github.com/fosskers/aura"
license=('GPL-3')
arch=('i686' 'x86_64')
depends=('gmp' 'pacman' 'pcre' 'abs')
makedepends=('ghc'
'haskell-aur'
'haskell-lens'
'haskell-mtl'
'haskell-parsec'
'haskell-regex-base'
'haskell-regex-pcre-builtin'
'haskell-split'
'haskell-temporary'
'haskell-text'
'haskell-transformers'
'haskell-wreq>=0.3')
optdepends=('powerpill: For faster repository downloads.'
'customizepkg: For auto-editing of PKGBUILDs.'
'aur-git: AUR package completions for zsh.')
provides=('aura')
conflicts=('aura-git' 'aura-bin')
options=('strip')
source=(https://bitbucket.org/fosskers/aura/downloads/${_hkgname}-${pkgver}.tar.gz)
md5sums=('f968b86ed347fae4c3631d4d51d333a2')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O
runhaskell Setup build
}
package() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup copy --destdir=${pkgdir}
# Installing man page
mkdir -p "$pkgdir/usr/share/man/man8/"
install -m 644 doc/aura.8 "$pkgdir/usr/share/man/man8/aura.8"
# Installing bash completions
mkdir -p "$pkgdir/usr/share/bash-completion/completions/"
install -m 644 doc/completions/bashcompletion.sh "$pkgdir/usr/share/bash-completion/completions/aura"
# Installing zsh completions
mkdir -p "$pkgdir/usr/share/zsh/site-functions/"
install -m 644 doc/completions/_aura "$pkgdir/usr/share/zsh/site-functions/_aura"
# Directory for storing PKGBUILDs
mkdir -p "$pkgdir/var/cache/aura/pkgbuilds"
# Directory for storing source packages
mkdir -p "$pkgdir/var/cache/aura/src"
# Directory for storing installed package states
mkdir -p "$pkgdir/var/cache/aura/states"
}