diff options
author | Chocobo1 | 2019-05-13 21:17:52 +0800 |
---|---|---|
committer | Chocobo1 | 2019-05-13 21:28:08 +0800 |
commit | a1c6ee82624edca93fb8aee832038e3a83f260bd (patch) | |
tree | 99c083adc4d1f6c7fa89c5894a8cc973d317949f | |
parent | 2a68d88f4a4fc095938e1d663b46f946b349657a (diff) | |
download | aur-a1c6ee82624edca93fb8aee832038e3a83f260bd.tar.gz |
upgpkg: mbedtls-git 2.17.0.r258.g75d9a333c-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 38 insertions, 37 deletions
@@ -1,21 +1,20 @@ -# Generated by mksrcinfo v8 -# Tue Aug 23 16:37:15 UTC 2016 pkgbase = mbedtls-git - pkgdesc = Portable cryptographic and SSL/TLS library, aka polarssl - git checkout - pkgver = 2.3.0.r156.g184eea6 + pkgdesc = An open source, portable, easy to use, readable and flexible SSL library + pkgver = 2.17.0.r258.g75d9a333c pkgrel = 1 - url = https://tls.mbed.org + url = https://tls.mbed.org/ arch = i686 arch = x86_64 - license = Apache + license = apache + checkdepends = python2 + makedepends = git depends = glibc - provides = polarssl provides = mbedtls - conflicts = polarssl + provides = polarssl conflicts = mbedtls - replaces = polarssl + conflicts = polarssl options = staticlibs - source = git://github.com/ARMmbed/mbedtls + source = git+https://github.com/ARMmbed/mbedtls.git sha256sums = SKIP pkgname = mbedtls-git @@ -1,49 +1,51 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> +# Former maintainer: Anton Kudryavtsev <boblobl4@gmail.com> + pkgname=mbedtls-git -pkgver=2.3.0.r156.g184eea6 +pkgver=2.17.0.r258.g75d9a333c pkgrel=1 -pkgdesc="Portable cryptographic and SSL/TLS library, aka polarssl - git checkout" +pkgdesc="An open source, portable, easy to use, readable and flexible SSL library" arch=('i686' 'x86_64') -url="https://tls.mbed.org" -license=('Apache') -provides=('polarssl' 'mbedtls') -replaces=('polarssl') -conflicts=('polarssl' 'mbedtls') -source=("git://github.com/ARMmbed/mbedtls") -sha256sums=('SKIP') +url="https://tls.mbed.org/" +license=('apache') depends=('glibc') +makedepends=('git') +checkdepends=('python2') +provides=('mbedtls' 'polarssl') +conflicts=('mbedtls' 'polarssl') options=('staticlibs') +source=("git+https://github.com/ARMmbed/mbedtls.git") +sha256sums=('SKIP') -pkgver() { - cd mbedtls/ - - if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then - echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" - else - echo "0.r$(git rev-list --count development).g$(git log -1 --format="%h")" - fi -} prepare() { - cd mbedtls/ + cd "mbedtls" + # enable flags for non-embedded systems - sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h - sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h + sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' "include/mbedtls/config.h" + sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' "include/mbedtls/config.h" +} + +pkgver() { + cd "mbedtls" - # FS#49914 - sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h + git describe --long --tags | sed 's/^mbedtls-//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd mbedtls/ - LDFLAGS+=" -I../include " make SHARED=1 no_test + cd "mbedtls" + + make SHARED=1 no_test } check() { - cd mbedtls/ + cd "mbedtls" + make SHARED=1 check } package() { - cd mbedtls/ + cd "mbedtls" + make DESTDIR="$pkgdir/usr" install } |