blob: 2a0e1eac58614239aecb3b8a14ee860f5fba26dd (
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
|
# Maintainer: Richard Steinmetz <steinmetz.richard@googlemail.com>
pkgname=taskbook-git
pkgver=0.3.0+10+g21dcadd
pkgrel=1
pkgdesc='Tasks, boards & notes for the command-line habitat (git)'
arch=(any)
url=https://github.com/klaussinani/taskbook
license=(MIT)
depends=(nodejs)
makedepends=(git npm)
provides=(taskbook)
conflicts=(taskbook)
source=(git+$url)
sha512sums=(SKIP)
pkgver() {
cd taskbook
git describe --tags | sed 's/v//;s/-/+/g'
}
build() {
cd taskbook
npm install
}
package() {
install -d "$pkgdir"/usr/{lib/node_modules,bin}
cp -a taskbook "$pkgdir"/usr/lib/node_modules
chmod +x "$pkgdir"/usr/lib/node_modules/taskbook/cli.js
ln -s /usr/lib/node_modules/taskbook/cli.js "$pkgdir"/usr/bin/taskbook
install -Dm 644 taskbook/license.md "$pkgdir"/usr/share/licenses/taskbook/LICENSE
}
|