summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c41793cb7b45d0bea97e232f5c3fea870dcff13a (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
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
_pkgname=amb
pkgname=${_pkgname}-svn
pkgver=r119
pkgrel=1
pkgdesc='AMB stands for Ancient Machines Book. It is an extremely lightweight file format meant to store any kind of hypertext documentation '
url='http://ambook.sourceforge.net/'
license=('MIT')
arch=('x86_64' 'aarch64')
conflicts=(${_pkgname})
makedepends=('subversion' 'tar' 'make' 'gcc' 'sed') 
source=("svn+https://svn.code.sf.net/p/ambook/code/${_pkgname}/trunk")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/trunk"
  local ver="$(svnversion)"
  printf "r%s" "${ver//[[:alpha:]]}"
}

prepare() {
	cd ${srcdir}"/trunk/"
	sed -n '/.*LICENSE.*/,$p' ${_pkgname}.txt > LICENSE
}

build() {
	cd ${srcdir}"/trunk/"
	make 
}

package() {
	mkdir -p "${pkgdir}/usr/bin/"
	cd ${srcdir}"/trunk/"
	mv ${_pkgname}	${pkgdir}/usr/bin/
	install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}