updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / taskwarrior / PKGBUILD
blob15179bb4c79a29668f5db62b1e28f1ecb7b9cf46
1 # Maintainer: Martin Lee <hellnest.fuah@gmail.com>
3 pkgname=taskwarrior
4 pkgdesc="Command-line TODO list manager"
5 _pkgsrc=task
6 pkgver=1.9.4
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 url="http://taskwarrior.org/projects/show/taskwarrior"
10 license=('GPL2')
11 depends=('lua')
12 makedepends=('cmake')
13 source=(http://www.taskwarrior.org/download/${_pkgsrc}-${pkgver}.tar.gz)
14 sha256sums=('1020621c9bf885c3216a5c11cacced3c916b6495e0d09846b7438a152618d34a') 
16 build() {
17   cd "${srcdir}/${_pkgsrc}-${pkgver}"
18   
19   cmake -DCMAKE_INSTALL_PREFIX=/usr
21   make
22   
25 package() {
26   cd "${srcdir}/${_pkgsrc}-${pkgver}/src"
27   install -Dm755 ${_pkgsrc} "${pkgdir}/bin/${_pkgsrc}"
29   cd "${srcdir}/${_pkgsrc}-${pkgver}/scripts/bash"
30   mkdir -p "${pkgdir}/etc/profile.d"
31   install -Dm755 ${_pkgsrc}_completion.sh "${pkgdir}/etc/profile.d/"
33   cd "${srcdir}/${_pkgsrc}-${pkgver}/doc/man"
34   install -Dm644 $_pkgsrc.1 "${pkgdir}/usr/share/man/man1/$_pkgsrc.1"
35   install -Dm644 $_pkgsrc-color.5 "${pkgdir}/usr/share/man/man5/$_pkgsrc-color.5"
36   install -Dm644 $_pkgsrc-faq.5 "${pkgdir}/usr/share/man/man5/$_pkgsrc-faq.5"
37   install -Dm644 taskrc.5 "${pkgdir}/usr/share/man/man5/taskrc.5"
38   install -Dm644 $_pkgsrc-sync.5 "${pkgdir}/usr/share/man/man5/$_pkgsrc-sync.5"
39   install -Dm644 $_pkgsrc-tutorial.5 "${pkgdir}/usr/share/man/man5/$_pkgsrc-tutorial.5"
41   cd "${srcdir}/${_pkgsrc}-${pkgver}/doc/rc"
42   mkdir -p "${pkgdir}/usr/share/${pkgname}/themes"
43   install -Dm644 *.theme "${pkgdir}/usr/share/${pkgname}/themes/"
44   install -Dm644 *.rc "${pkgdir}/usr/share/${pkgname}/"