summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9057a36a58c4f2d445f55fb0c48137381b7bd613 (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
37
38
39
# Maintainer: Ben Friesen <bfriesenwork@gmail.com>

_pkgname=xtext
pkgname=${_pkgname}-git
pkgver=20210105.7aa1c14
pkgrel=1
pkgdesc="Display Text w/ X11"
arch=('any')
url="https://github.com/resloved/xtext"
license=('GPL3')
depends=('pango' 'cairo' 'xorg-server')
makedepends=('git')
source=("git+https://github.com/resloved/${_pkgname}.git")
md5sums=(SKIP)

provides() {
        ${_pkgname}
}

conflicts() {
        "${_pkgname}"
}

pkgver() {
        cd "${srcdir}/${_pkgname}"
        git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
        cd "${srcdir}/${_pkgname}"
        make
}

package() {
        cd "${srcdir}/${_pkgname}"
        make PREFIX=/usr DESTDIR="${pkgdir}" install
        install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
        install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
}