summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3654e303d60facd022d54da47df3b96171d9798a (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
# Maintainer: loathingkernel <loathingkernel @at gmail .dot com>
pkgname=font-config-info-git
pkgver=r31.a274b37
pkgrel=1
pkgdesc="A tiny program that queries and prints a Linux system's font configuration"
arch=(x86_64)
url="https://github.com/derat/font-config-info"
license=('GPL')
depends=(gtk3 xsettingsd)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/derat/font-config-info.git')
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
    install -Dm755 font-config-info "$pkgdir"/usr/bin/font-config-info
}