summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12021-07-06 21:51:48 +0800
committerChocobo12021-07-06 21:51:48 +0800
commitea54016647c33b4b32f16237898070a49c1a0382 (patch)
treea83a87e51db2f40e6652764ff79caca51cff7d6f
parent1f6aedb879d1263746b973c64ba3be986a0d1305 (diff)
downloadaur-gmssl-git.tar.gz
upgpkg: gmssl-git r705.gf0dc2dce-1
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD24
2 files changed, 20 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b2dc69e6f3b..5893dfaae2b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gmssl-git
pkgdesc = Chinese national cryptographic algorithms and protocols
- pkgver = 2.0.r28.g25d4ff1
+ pkgver = r705.gf0dc2dce
pkgrel = 1
url = http://gmssl.org/
arch = i686
@@ -13,9 +13,8 @@ pkgbase = gmssl-git
conflicts = openssl
options = staticlibs
source = git+https://github.com/guanzhi/GmSSL.git
- source = ca-dir.patch::https://git.archlinux.org/svntogit/packages.git/plain/trunk/ca-dir.patch?h=packages/openssl
+ source = ca-dir.patch::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/openssl/trunk/ca-dir.patch
sha256sums = SKIP
sha256sums = SKIP
pkgname = gmssl-git
-
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"
}