summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 052071c1b75309d826fceeea37f40dc59b9aca5c (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=sam-git
pkgver=r473.5d8acb3
pkgrel=1
pkgdesc='An updated version of the sam text editor.'
arch=('i686' 'x86_64')
url='https://github.com/deadpixi/sam'
license=('custom')
makedepends=('git')
source=("$pkgname::git+$url")
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
}

package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/usr" install
	install -Dm644 README.rst $pkgdir/usr/share/doc/${pkgname%-*}/README.rst
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
	cd doc; for i in sam.ps se.ps samrc; do
		install -Dm644 $i $pkgdir/usr/share/doc/${pkgname%-*}/$i
	done
}