blob: 2898e431d3e1ff3c2d9ac24a3345c3c1f782235c (
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
|
# Maintainer: 'Francisco Demartino <demartino.francisco@gmail.com>'
# Contributor: 'Patrick Burroughs (Celti) <celti@celti.name>'
pkgname=snb-git
pkgver=r128.54225f2
pkgrel=3
pkgdesc="Simple hierarchical notebook that's locale (Unicode) aware"
arch=("i686" "x86_64")
url="https://github.com/drbig/snb"
license=('BSD')
depends=('ncurses')
makedepends=('git')
source=('git+https://github.com/drbig/snb')
groups=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
# Open the help file by default if no arguments are specified.
sed -i src/user.h -e 's/\/\/#define DEFAULT_FILE.*/#define DEFAULT_FILE "\/usr\/share\/doc\/snb\/help.md"/'
}
build() {
cd "$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
mv "$pkgdir/usr/share/docs" "$pkgdir/usr/share/doc"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|