aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libuecc/APKBUILD
blob: 80dc9928f2874e80cf7a132cbc4b78712e2bca40 (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
44
45
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=libuecc
pkgver=7
pkgrel=0
pkgdesc="Very small Elliptic Curve Cryptography library"
url="http://git.universe-factory.net/libuecc/"
arch="all"
license="BSD"
depends=""
depends_dev="cmake"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://git.universe-factory.net/${pkgname}/snapshot/${pkgname}-${pkgver}.tar"

_builddir="$srcdir/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	mkdir build
	cd build
	cmake -D CMAKE_INSTALL_PREFIX=/usr ..
	make
}

package() {
	cd "$_builddir/build"
	make install DESTDIR="${pkgdir}"
	install -Dm644 "$_builddir"/COPYRIGHT \
		$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
}

md5sums="7b3a08cb42b3af913f8186d595f52965  libuecc-7.tar"
sha256sums="0120aee869f56289204255ba81535369816655264dd018c63969bf35b71fd707  libuecc-7.tar"
sha512sums="3b9bfc62709bf8242fc4caeeda1c079fe17bb74492eb14527d0a8afbe969a836dd5b62b4408adb3ff80b9f7dcdfdc8f6be9886dc6e4181780b55c71fd6c604d8  libuecc-7.tar"