summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b98bcbb169d20a838d041544daef3144089ca93a (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
# Maintainer: Alex J. Malozemoff <amaloz@galois.com>
pkgname=libksi
pkgver=3.14.2207
pkgrel=1
pkgdesc="Guardtime KSI C SDK"
arch=('i686' 'x86_64')
url="https://github.com/guardtime/libksi"
license=('Apache')
depends=('curl' 'openssl')
makedepends=('automake' 'gcc')
provides=('libksi')

source=("https://github.com/guardtime/$pkgname/archive/v$pkgver.tar.gz"
        "openssl.1.1.0f.patch")
md5sums=('a01d022140bfa01a0423f8d97fc8dcf3'
         'b9fb84b5a027a948628dfe36046f7b3f')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -p1 -i "$srcdir/openssl.1.1.0f.patch"
  autoreconf -i
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}