blob: 19b2d7a653b4b270d4c95c8a2c38c0fdcc5c9283 (
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: Joakim Reinert <mail+aur@jreinert.com>
_gitname=xftwidth
pkgname=${_gitname}-git
pkgver=r26.35ff963
pkgrel=2
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)
makedepends=(git)
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"
}
|