summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8063bac783105289e8773390cdae3d5ea24aaca0 (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
#PKGBUILD was last modified on September 27, 2022 at 04:01 PM EDT by bms#
# Maintainer: Ben Sutter <benjaminsutter@outlook.com>
pkgname=guile-todo-git
pkgver=r3.e37ee87
pkgrel=1
pkgdesc="Lispy todo tracker"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/bms-1984/todo"
license=('GPL')
depends=('guile' 'guile-config')
makedepends=('guile-hall' 'git')
provides=("guile-todo=$pkgver")
options=(!strip)
source=("${pkgname%-git}::git+https://github.com/bms-1984/todo.git")
sha256sums=('SKIP')

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

prepare() {
  cd "${pkgname%-git}"
  hall build -x
  ./autogen.sh
  ./configure --prefix=/usr
}
  
build() {
  cd "${pkgname%-git}"
  make
}

check() {
  cd "${pkgname%-git}"
  make -k check
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}