summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f95bf9dc8c075a2f8d34351557b0d5f97f07c94 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gmssl
pkgver=3.1.1
pkgrel=1
pkgdesc="Chinese national cryptographic algorithms and protocols"
arch=('i686' 'x86_64')
url="http://gmssl.org/"
license=('Apache')
depends=('glibc')
makedepends=('cmake')
source=("$pkgname-$pkgver-src.tar.gz::https://github.com/guanzhi/GmSSL/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('23ed2ce74e408fc4c80289d2b499c7c5eec8373fefaf3827a53cb4c134dd5263')


build() {
  cd "GmSSL-$pkgver"

  cmake \
    -B "_build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    ./
  make -C "_build"
}

check() {
  cd "GmSSL-$pkgver"

  #make -C "_build" test
}

package() {
  cd "GmSSL-$pkgver"

  make -C "_build" DESTDIR="$pkgdir" install
}