summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7d4ff13e2f835146f330b36fe76955db0ab31a9 (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
38
39
40
41
# Maintainer: Václav Šmejkal <business.engo150@gmail.com>

pkgname=why2
pkgver=v
pkgrel=1
epoch=
pkgdesc="Installation of WHY2 Encryption System library on your machine!"
arch=(x86_64)
url="https://github.com/ENGO150/WHY2.git"
license=('MIT')
groups=()
depends=()
makedepends=(make git gcc curl json-c)
checkdepends=()
optdepends=()
provides=(why2)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "${_pkgname}"

	printf "vr%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "WHY2"

	make install

	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
}