summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 564bc9241e89430418a01b1d3554bdbf24466c4d (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
#Maintainer: Iru Cai <mytbk920423@gmail.com>

pkgname='libgoldilocks-git'
_pkgname='libgoldilocks'
pkgver=727.d07cb5b
pkgrel=1
pkgdesc="An implementation of Mike Hamburg's Ed448 (Goldilocks) curve"
arch=('i686' 'x86_64')
url='https://github.com/otrv4/libgoldilocks'
license=('MIT')
depends=()
source=('git+https://github.com/otrv4/libgoldilocks.git'
	'remove_archflags.patch')
sha256sums=('SKIP'
	'0a1e262dd29db8ffc3fe7b41f35b9fc4f0d417d5da83557da7f5aa9ed9c00a04')

prepare() {
	cd "${srcdir}/${_pkgname}"
	patch -p1 -i "${srcdir}/remove_archflags.patch"
}

build() {
	cd "${srcdir}/${_pkgname}"

	autoreconf --install
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" install
}

pkgver() {
	cd "${srcdir}/${_pkgname}"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}