summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a892e89c832c73314a9d387b3b4994a53033bb18 (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
# Maintainer: Chris Down <chris@chrisdown.name>

pkgname=st-xres-git
_gitname=st
pkgver=0.r1167.9dd13f2
pkgrel=1
pkgdesc="st with xresources patch applied"
license=('MIT')
url='https://github.com/cdown/st'
depends=('libxft')
arch=('any')
makedepends=('git')
conflicts=('st')
provides=('st')

source=('git+https://github.com/cdown/st.git')
md5sums=('SKIP')

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

build() {
    cd "$_gitname"
    make
}

package() {
    cd "$_gitname"
    make PREFIX=/usr DESTDIR="$pkgdir" install
}