summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a23a539f519b31834952a0224280ab31a2e10def (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
# Maintainer: nycex <nycex / cccp.org>
_pkgbasename=lookupunicode
pkgname=${_pkgbasename}-git
pkgrel=2
pkgver=r13.c3add01
pkgdesc="swizz army knife for unicode - a utility to search in the unicode database"
arch=('x86_64')
url="https://codeberg.org/nycex/${_pkgbasename}"
license=('GPL-3.0-only')
depends=('unicode-character-database')
makedepends=('git' 'cargo')
provides=(lookupunicode)
conflicts=(lookupunicode)
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"
}