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

Thomas Dziedzic tdziedzic at archlinux.org
Sat Feb 11 15:22:36 EST 2012


    Date: Saturday, February 11, 2012 @ 15:22:35
  Author: tdziedzic
Revision: 149916

clean up PKGBUILD and add maintainer

Modified:
  ruby/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-11 20:09:00 UTC (rev 149915)
+++ PKGBUILD	2012-02-11 20:22:35 UTC (rev 149916)
@@ -1,5 +1,5 @@
 # $Id$
-# Maintainer:
+# Maintainer: Thomas Dziedzic <gostrc at gmail.com>
 # Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: John Proctor <jproctor at prium.net>
 # Contributor: Jeramy Rutley <jrutley at gmail.com>
@@ -14,18 +14,24 @@
 license=('BSD' 'custom')
 makedepends=('openssl' 'tk' 'libffi' 'doxygen' 'graphviz' 'libyaml')
 options=('!emptydirs' '!makeflags')
-source=(ftp://ftp.ruby-lang.org/pub/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver//_/-}.tar.bz2)
+source=("ftp://ftp.ruby-lang.org/pub/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver//_/-}.tar.bz2")
 sha1sums=('f63c116411b981ef54c2caeefb9ccc4d71a5d2cf')
 
 build() {
-  cd "${srcdir}/${pkgbase}-${pkgver//_/-}"
-  DOXYGEN=/usr/bin/doxygen PKG_CONFIG=/usr/bin/pkg-config ./configure --prefix=/usr --sysconfdir=/etc \
-      --enable-shared --enable-pthread --disable-rpath
+  cd ${pkgbase}-${pkgver//_/-}
+
+  DOXYGEN=/usr/bin/doxygen PKG_CONFIG=/usr/bin/pkg-config ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --enable-shared \
+    --enable-pthread \
+    --disable-rpath
+
   make
 }
 
 check() {
-  cd "${srcdir}/${pkgbase}-${pkgver//_/-}"
+  cd ${pkgbase}-${pkgver//_/-}
 
   make test
 }
@@ -36,7 +42,8 @@
   conflicts=('rake')
   optdepends=('tk: for Ruby/TK')
 
-  cd "${srcdir}/${pkgbase}-${pkgver//_/-}"
+  cd ${pkgbase}-${pkgver//_/-}
+
   make DESTDIR="${pkgdir}" install-nodoc
   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
   install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL"
@@ -45,7 +52,8 @@
 package_ruby-docs() {
   pkgdesc="Documentation files for ruby"
 
-  cd "${srcdir}/${pkgbase}-${pkgver//_/-}"
+  cd ${pkgbase}-${pkgver//_/-}
+
   make DESTDIR="${pkgdir}" install-doc install-capi
   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
   install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL"



More information about the arch-commits mailing list