summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f00bdb19b7c6027b939a67626407e389ab086a56 (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
# Maintainer: David Phillips <dbphillipsnz@gmail.com>

_pkgname=dodo
pkgname=${_pkgname}-git
pkgver=r130.4df8fe0
pkgrel=1
pkgdesc="Scriptable in-place file editor"
arch=('i686' 'x86_64')
url="https://github.com/mkfifo/${_pkgname}"
license=('MIT')
depends=()
makedepends=('git')
source=("${pkgname}::git+https://github.com/mkfifo/${_pkgname}.git")
sha256sums=('SKIP')

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

build() {
	make -C "${srcdir}/${pkgname}" \
		PREFIX=/usr/
}

package() {
	cd "${srcdir}/${pkgname}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/dodo-git/LICENSE"
}