summaryrefslogtreecommitdiff
path: root/pkgbuilds/xcross-git/PKGBUILD
blob: e6e7bad4f79adb75a7661945b106d98d70f988bb (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
# Maintainer: Xiao Pan <gky44px1999@gmail.com>

pkgname=xcross-git
pkgver=r14.c57935d
pkgrel=1
pkgdesc='X11 draw a cross at cursor across screen '
arch=('x86_64')
url='https://git.flylightning.xyz/xcross'
license=('GPL3')
depends=('libx11')
makedepends=('git')
provides=('xcross')
conflicts=('xcross')
source=("git+$url")
b2sums=('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}"
	make PREFIX=/usr DESTDIR="$pkgdir/" install
}