summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ae3a1275a0c9cd1990eb7ce20e4ba467bd82cd0 (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=se-git
pkgver=3.0.1.r47.g0d06c10
pkgrel=1
pkgdesc='A screen oriented version of the classic UNIX text editor ed.'
arch=('i686' 'x86_64')
url='https://github.com/screen-editor/se'
license=('publicdomain')
depends=('ncurses')
makedepends=('git')
conflicts=("${pkgname%-*}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/$pkgname"
	autoreconf -i
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" install
	install -D -m644 COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}