summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae3b95cb7e14e85c1f404f28f9e67a41e6e76cfb (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
# Maintainer: Cody Schafer <aur at codyps.com>
pkgname=xdpi-git
pkgver=0.0.0.r48.924fcc5
pkgrel=1
pkgdesc="X11 DPI information retrieval"
arch=(x86_64)
url="https://github.com/Oblomov/xdpi"
license=('MPL')
groups=()
depends=('libxinerama' 'xcb-util-xrm' 'libxrandr')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/Oblomov/xdpi.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "0.0.0.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 -d $pkgdir/usr/bin
	install -D -m755 xdpi $pkgdir/usr/bin/xdpi
}