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

Eric Bélanger eric at archlinux.org
Thu Jul 15 17:19:26 EDT 2010


    Date: Thursday, July 15, 2010 @ 17:19:25
  Author: eric
Revision: 85550

upgpkg: swig 2.0.0-1
Upstream update, Added missing license file

Modified:
  swig/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-15 21:17:45 UTC (rev 85549)
+++ PKGBUILD	2010-07-15 21:19:25 UTC (rev 85550)
@@ -3,20 +3,26 @@
 # Maintainer: Jason Chu <jason at archlinux.org>
 
 pkgname=swig
-pkgver=1.3.40
+pkgver=2.0.0
 pkgrel=1
 pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
 arch=('i686' 'x86_64')
+url="http://www.swig.org/"
 license=('custom')
-url="http://www.swig.org/"
 depends=('gcc-libs' 'zlib')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('2df766c9e03e02811b1ab4bba1c7b9cc')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('36ee2d9974be46a9f0a36460af928eb9')
+sha1sums=('60faa84a326e5aa8a94f290e9debed4551c1b1e7')
 
 build() {
-  cd ${srcdir}/$pkgname-$pkgver
+  cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr
-  make || return 1
-  make DESTDIR=${pkgdir} install
-  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+  make
 }
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES"
+}



More information about the arch-commits mailing list