Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit f635fb687b1e413c568c6361a811a2eeb9428c45 1 parent a269683
Johannes Dewender authored

Showing 1 changed file with 27 additions and 21 deletions. Show diff stats Hide diff stats

  1. +27 21 ruby-svn/PKGBUILD
48 ruby-svn/PKGBUILD
... ... @@ -1,16 +1,17 @@
  1 +# Contributor: Johannes Dewender arch at JonnyJD dot net
1 2 # Contributor: kamu <mr.kamu@gmail.com>
2 3 pkgname=ruby-svn
3   -pkgver=26652
4   -pkgrel=2
  4 +pkgver=39745
  5 +pkgrel=1
5 6 pkgdesc="A dynamic, open source programming language with a focus on simplicity and productivity."
6   -arch=(i686 x86_64)
  7 +arch=('i686' 'x86_64')
7 8 url="http://www.ruby-lang.org/en/"
8 9 license="Ruby"
9 10 depends=('glibc' 'gdbm' 'db' 'openssl' 'zlib' 'readline')
10 11 makedepends=('subversion' 'autoconf')
  12 +# this installs with a suffix (no conflict)
11 13 #conflicts=('ruby')
12   -#provides=('ruby=1.9.2')
13   -
  14 +#provides=('ruby=2.1.0dev')
14 15 source=()
15 16 md5sums=()
16 17
@@ -20,21 +21,26 @@ _suffix="-svn"
20 21 _version="svn"
21 22
22 23 build() {
23   - cd $startdir/src/
24   - if [ -d $_svnmod ]; then
25   - cd $_svnmod
26   - svn update --force -r $pkgver
27   - else
28   - svn co $_svntrunk $_svnmod
29   - cd $_svnmod
30   - fi
31   - autoconf
  24 + cd $startdir/src/
  25 + if [ -d $_svnmod ]; then
  26 + cd $_svnmod
  27 + svn update --force -r $pkgver
  28 + else
  29 + svn co $_svntrunk $_svnmod
  30 + cd $_svnmod
  31 + fi
  32 + autoconf
  33 +
  34 + ./configure --prefix=/usr --enable-shared --enable-pthread \
  35 + --program-suffix=$_suffix --with-ruby-version=$_version \
  36 + --with-soname=ruby$_suffix
  37 + make || return 1
  38 +}
32 39
33   - #./configure --prefix=/usr --enable-shared --enable-pthread
34   - ./configure --prefix=/usr --enable-shared --enable-pthread \
35   - --program-suffix=${_suffix} --with-ruby-version=${_version} \
36   - --with-soname=ruby${_suffix}
37   - make || return 1
38   - make DESTDIR=${startdir}/pkg install || return 1
39   - make DESTDIR=${startdir}/pkg install-doc || return 1
  40 +package() {
  41 + cd $startdir/src/$_svnmod
  42 + make DESTDIR=$pkgdir install || return 1
  43 + make DESTDIR=$pkgdir install-doc || return 1
40 44 }
  45 +
  46 +# vim:set ts=2 sw=2 et:

0 comments on commit f635fb6

Please sign in to comment.
Something went wrong with that request. Please try again.