summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0f4b09023b3b2923b7001334e6c1adbecdfa586 (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
# Maintainer: Joakim Reinert <mail+aur@jreinert.com>

_gitname=xftwidth
pkgname=${_gitname}-git
pkgver=r26.35ff963
pkgrel=1
pkgdesc='Calculate the width in pixels of a string using a given Xft font'
arch=(x86_64)
url="http://github.com/vixus0/xftwidth"
license=(MIT)
depends=(libxft libx11 fontconfig freetype2)
provides=($_gitname)
conflicts=($_gitname)

source=('git+https://github.com/vixus0/xftwidth.git')

sha512sums=(SKIP)

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

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

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