Permalink
Browse files

ruby-svn: create package(), builds fine currently

  • Loading branch information...
1 parent a269683 commit f635fb687b1e413c568c6361a811a2eeb9428c45 @JonnyJD committed Mar 13, 2013
Showing with 27 additions and 21 deletions.
  1. +27 −21 ruby-svn/PKGBUILD
View
@@ -1,16 +1,17 @@
+# Contributor: Johannes Dewender arch at JonnyJD dot net
# Contributor: kamu <mr.kamu@gmail.com>
pkgname=ruby-svn
-pkgver=26652
-pkgrel=2
+pkgver=39745
+pkgrel=1
pkgdesc="A dynamic, open source programming language with a focus on simplicity and productivity."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://www.ruby-lang.org/en/"
license="Ruby"
depends=('glibc' 'gdbm' 'db' 'openssl' 'zlib' 'readline')
makedepends=('subversion' 'autoconf')
+# this installs with a suffix (no conflict)
#conflicts=('ruby')
-#provides=('ruby=1.9.2')
-
+#provides=('ruby=2.1.0dev')
source=()
md5sums=()
@@ -20,21 +21,26 @@ _suffix="-svn"
_version="svn"
build() {
- cd $startdir/src/
- if [ -d $_svnmod ]; then
- cd $_svnmod
- svn update --force -r $pkgver
- else
- svn co $_svntrunk $_svnmod
- cd $_svnmod
- fi
- autoconf
+ cd $startdir/src/
+ if [ -d $_svnmod ]; then
+ cd $_svnmod
+ svn update --force -r $pkgver
+ else
+ svn co $_svntrunk $_svnmod
+ cd $_svnmod
+ fi
+ autoconf
+
+ ./configure --prefix=/usr --enable-shared --enable-pthread \
+ --program-suffix=$_suffix --with-ruby-version=$_version \
+ --with-soname=ruby$_suffix
+ make || return 1
+}
- #./configure --prefix=/usr --enable-shared --enable-pthread
- ./configure --prefix=/usr --enable-shared --enable-pthread \
- --program-suffix=${_suffix} --with-ruby-version=${_version} \
- --with-soname=ruby${_suffix}
- make || return 1
- make DESTDIR=${startdir}/pkg install || return 1
- make DESTDIR=${startdir}/pkg install-doc || return 1
+package() {
+ cd $startdir/src/$_svnmod
+ make DESTDIR=$pkgdir install || return 1
+ make DESTDIR=$pkgdir install-doc || return 1
}
+
+# vim:set ts=2 sw=2 et:

0 comments on commit f635fb6

Please sign in to comment.