blob: 03d557b813f94fa441146ef383be4bf98c982424 (
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
|
# Maintainer Dhananjay B <mail@dbalan.in>
pkgname=tarsnap-backup-git
pkgver=0.2.ge9bba7b
pkgrel=1
pkgdesc="Haskell program for managing tarsnap backups"
arch=('x86_64')
url="https://github.com/irv/tarsnap-backup"
license=('custom:BSD3')
makedepends=(
'ghc'
'git'
'cabal-install'
'haskell-cmdargs'
)
provides=('tarsnap-backup')
depends=('tarsnap')
_gitroot="https://github.com/irv/tarsnap-backup.git"
source=("${pkgname}::git+${_gitroot}")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
echo 0.2.g$(git rev-parse HEAD | head -c 7)
}
build() {
cd "${pkgname}"
cabal configure
cabal build
}
package() {
cd "${pkgname}"
install -D -m755 dist/build/tarsnap-backup/tarsnap-backup "${pkgdir}/usr/bin/tarsnap-backup"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|