summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f82097ba058551e2d2e48ea1155f609ef7eee99 (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
# Maintainer: Robinhuett <aur at tripp dot xyz>
# Contributor: Neal <neal.oakey at oakey-dev dot de>

pkgname=ecdsautils
arch=(i686 x86_64)
pkgver=0.4.1
pkgrel=1
pkgdesc="Tiny collection of programs used for ECDSA (keygen, sign, verify)"
makedepends=('cmake')
depends=('glibc' 'libuecc>=6')
url="https://github.com/freifunk-gluon/ecdsautils"
license=('BSD')

source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('6fd827b3070afddc9e31f37f1d805f54aabf8518d2310c5c2b26cc8eb53555a8')

build() {
  rm -rf "$srcdir/build"
  mkdir -p "$srcdir/build"
  cd "$srcdir/build"

  cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr "../${pkgname}-${pkgver}"
  make
}

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