summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ec65bbd28171f6e96ca7b89e65657091b9935b3 (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
42
43
# Maintainer: Václav Šmejkal <business.engo150@gmail.com>

pkgname='why2-stable-git'
pkgver='r1376.3fa15f5'
pkgrel=1
epoch=
pkgdesc="Symmetric Encryption System Written in C."
arch=(x86_64)
url="https://gitea.coquette.baby/ENGO150/WHY2"
license=('GPLv3')
groups=()
depends=('git' 'tmux' 'curl' 'json-c' 'libgit2' 'gmp' 'openssl' 'cargo')
makedepends=('sudo' 'make')
checkdepends=()
optdepends=()
provides=('why2')
conflicts=('why2' 'why2-development-git')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "WHY2"
    git checkout stable &>/dev/null

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

package() {
	cd "WHY2"
    git checkout stable &>/dev/null

	make install BYPASS_CHECK=true

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