summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ddccef5aaddfc384669f3672fe26a2a95f4e000 (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
# Maintainer: Your Name <seppia@seppio.fish>
pkgname=otbluh-git
pkgver=r76.a0ae5aa
pkgrel=1
pkgdesc="simple one time pad implementation with key generating support"
arch=('x86' 'x86_64' 'aarch64')
url="https://git.eigenlab.org/seppia/onetimebluh"
license=('GPLv3')
groups=()
depends=('openssl')
makedepends=('git' 'openssl')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('otbluh::git+https://git.eigenlab.org/seppia/onetimebluh')
noextract=()
md5sums=('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 all
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}