summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bd488f464fcb21d75fde8e5339486fdae3170a9 (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: emersion <contact@emersion.fr>
pkgname=mdrgpalu-git
pkgver=v0.1.0.r3.ed19387
pkgrel=1
pkgdesc="A KISS command-line text editor"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/emersion/mdrgpalu"
license=('Unlicense')
groups=()
depends=()
makedepends=('git')
optdepends=('xclip: system-wide clipboard')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/emersion/mdrgpalu.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

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