summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ee64214eaf4dbd892ffd980ef797c82fb972dd0 (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
# Maintainer: nycex <nycex / cccp.org>
_pkgbasename=clicker
pkgname=${_pkgbasename}-git
pkgrel=1
pkgver=r45.9ef5eeb
pkgdesc="a simple desktop automation tool (autoclicker)"
arch=('any')
url="https://codeberg.org/nycex/${_pkgbasename}"
license=('GPL3')
depends=('cargo')
makedepends=('git')
source=(git+${url})
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/${_pkgbasename}"
	cargo build --release
}

package() {
	cd "${srcdir}/${_pkgbasename}"

	install -D -m755 target/release/$_pkgbasename "${pkgdir}/usr/bin/$_pkgbasename"
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$_pkgbasename/LICENSE"
}