aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-05-03 00:33:47 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-05-03 02:16:22 +0000
commit650fa2b04f53508954e5b7a4065455807c2a04ea (patch)
tree4786abe5d0f357960c4c7af502e5a29f717356e9 /testing
parente78faa1ad9d9d4732da04ba693d4e28ed1009f3c (diff)
downloadaports-650fa2b04f53508954e5b7a4065455807c2a04ea.tar.bz2
aports-650fa2b04f53508954e5b7a4065455807c2a04ea.tar.xz
testing/libuecc: modernize
Diffstat (limited to 'testing')
-rw-r--r--testing/libuecc/APKBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/testing/libuecc/APKBUILD b/testing/libuecc/APKBUILD
index 147dd1efe8..3fa9028d84 100644
--- a/testing/libuecc/APKBUILD
+++ b/testing/libuecc/APKBUILD
@@ -2,26 +2,27 @@
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=libuecc
pkgver=7
-pkgrel=1
+pkgrel=2
pkgdesc="Very small Elliptic Curve Cryptography library"
-options="!check" # No testsuite
url="https://git.universe-factory.net/libuecc"
arch="all"
license="BSD-2-Clause"
makedepends="cmake"
+options="!check" # No testsuite
subpackages="$pkgname-dev"
-source="https://git.universe-factory.net/${pkgname}/snapshot/${pkgname}-${pkgver}.tar"
+source="https://git.universe-factory.net/libuecc/snapshot/libuecc-$pkgver.tar"
build() {
- mkdir build
- cd build
- cmake -D CMAKE_INSTALL_PREFIX=/usr ..
- make
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ .
+ make -C build
}
package() {
- cd "$builddir/build"
- make install DESTDIR="${pkgdir}"
+ make -C build DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.a
}