summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6e502b96c72aaf7146391c3e8d1cf209a902fe0 (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
# Maintainer: Craig Barnes <craigbarnes@protonmail.com>
pkgname=dte-git
pkgver=1.9.1+597+ge3aebd22
pkgrel=1
pkgdesc='A small, configurable console text editor'
url='https://craigbarnes.gitlab.io/dte/'
arch=(x86_64 i686 armv7h aarch64)
license=(GPL2)
depends=(glibc ncurses)
makedepends=(git bash-completion)
conflicts=(dte)
provides=(dte)
source=("git+https://gitlab.com/craigbarnes/dte.git")
sha256sums=(SKIP)

pkgver() {
    cd "$srcdir/dte"
    git describe --match='v[1-9]*' | tr - + | sed 's/^v//'
}

build() {
    cd "$srcdir/dte"
    make V=1
}

check() {
    cd "$srcdir/dte"
    make check V=1
}

package() {
    cd "$srcdir/dte"
    make install install-bash-completion V=1 prefix=/usr DESTDIR="$pkgdir"
}