summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 150a65cd889f54c51f8678e5f057de3894c15384 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=lackey-git
pkgver=r84.f3ee8b7
pkgrel=1
epoch=
pkgdesc="A lightweight terminal based calendar program."
arch=('i686' 'x86_64')
url="https://github.com/Andy753421/lackey"
license=('GPLv3')
categories=()
groups=()
depends=('ncurses' 'libical')
makedepends=('git')
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+$url")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  make CPPFLAGS+="-Isrc" LDFLAGS+="-lncursesw -lical"
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" PREFIX="/usr" install
  install -D -m644 README $pkgdir/usr/share/doc/${pkgname%-*}/README
  install -D -m644 doc/screen.txt $pkgdir/usr/share/doc/${pkgname%-*}/screen.txt
  install -D -m644 doc/edit.txt $pkgdir/usr/share/doc/${pkgname%-*}/edit.txt
  install -D -m644 COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}