[arch-commits] Commit in openssl/trunk (PKGBUILD)

Pierre Schmitz pierre at archlinux.org
Tue Jun 1 20:53:20 EDT 2010


    Date: Tuesday, June 1, 2010 @ 20:53:20
  Author: pierre
Revision: 81609

upgpkg: openssl 1.0.0.a-2
use a pacman compatible version scheme

Modified:
  openssl/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-02 00:17:06 UTC (rev 81608)
+++ PKGBUILD	2010-06-02 00:53:20 UTC (rev 81609)
@@ -2,17 +2,19 @@
 # Maintainer: Pierre Schmitz <pierre at archlinux.de>
 
 pkgname=openssl
-pkgver=1.0.0a
-pkgrel=1
+_ver=1.0.0a
+# use a pacman compatible version scheme
+pkgver=$(echo $_ver|sed -E 's/([a-z])$/.\1/')
+pkgrel=2
 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
 arch=('i686' 'x86_64')
 url='https://www.openssl.org'
 license=('custom:BSD')
 depends=('perl')
 optdepends=('ca-certificates')
-options=('!makeflags' 'force')
+options=('!makeflags')
 backup=('etc/ssl/openssl.cnf')
-source=("https://www.openssl.org/source/${pkgname}-${pkgver}.tar.gz"
+source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
         'fix-manpages.patch'
         'no-rpath.patch'
         'ca-dir.patch')
@@ -25,7 +27,7 @@
 PKGEXT='.pkg.tar.gz'
 
 build() {
-	cd $srcdir/$pkgname-$pkgver
+	cd $srcdir/$pkgname-$_ver
 
 	# avoid conflicts with other man pages
 	# see http://www.linuxfromscratch.org/patches/downloads/openssl/
@@ -48,7 +50,7 @@
 }
 
 package() {
-	cd $srcdir/$pkgname-$pkgver
+	cd $srcdir/$pkgname-$_ver
 	make INSTALL_PREFIX=$pkgdir MANDIR=/usr/share/man install
 	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list