summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01bd37933002319533b3023540fabc215f1379d5 (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
37
# Maintainer: Piotr ┼╗urek (phitherek@gmail.com)
pkgname=auto-display-manager-cr-git
pkgver=v.0.1.2.cr.r0.c55ff77
pkgrel=1
pkgdesc="A Crystal program for managing multiple screens (displays) via XRandR."
arch=('any')
url="https://github.com/Phitherek/auto-display-manager-cr"
license=('MIT')
groups=()
depends=('xorg-xrandr' 'libnotify')
makedepends=('git' 'crystal')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('auto-display-manager-cr::git+https://github.com/Phitherek/auto-display-manager-cr')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/auto-display-manager-cr"

	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"

}

build() {
	cd "$srcdir/auto-display-manager-cr"
	./build.sh
}

package() {
	cd "$srcdir/auto-display-manager-cr"
	PREFIX="$pkgdir/usr" ./install.sh
}