summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 18 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 55442257cc9..d26d6619a16 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=gmssl-git
-pkgver=2.0.r28.g25d4ff1
+pkgver=r705.gf0dc2dce
pkgrel=1
pkgdesc="Chinese national cryptographic algorithms and protocols"
arch=('i686' 'x86_64')
@@ -13,7 +13,7 @@ provides=('gmssl')
conflicts=('gmssl' 'openssl')
options=('staticlibs')
source=("git+https://github.com/guanzhi/GmSSL.git"
- "ca-dir.patch::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ca-dir.patch?h=packages/openssl")
+ "ca-dir.patch::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/openssl/trunk/ca-dir.patch")
sha256sums=('SKIP'
'SKIP')
@@ -22,18 +22,25 @@ prepare() {
cd "GmSSL"
patch -Np0 -i "$srcdir/ca-dir.patch"
+ sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/:glob/;#g" "Configure"
+ sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/:glob/;#g" "test/build.info"
}
pkgver() {
cd "GmSSL"
- git describe --long --tags | sed 's/^gmssl-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ _rev=$(git rev-list --count --all)
+ _hash=$(git rev-parse --short HEAD)
+ printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
cd "GmSSL"
- ./config --prefix="/usr" --openssldir="/etc/ssl" --libdir="lib"
+ ./config \
+ --prefix="/usr" \
+ --openssldir="/etc/ssl" \
+ --libdir="lib"
make
}
@@ -46,6 +53,11 @@ check() {
package() {
cd "GmSSL"
- make DESTDIR="$pkgdir" MANSUFFIX="ssl" install_sw install_ssldirs install_man_docs
- install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ make \
+ DESTDIR="$pkgdir" \
+ MANSUFFIX="ssl" \
+ install_sw \
+ install_ssldirs \
+ install_man_docs
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/gmssl"
}