sources/dsss/PKGBUILD
author Anders Bergh <anders1@gmail.com>
Sun, 16 Dec 2007 21:04:10 -0800
changeset 5 f29a43ca4760
parent 1 c42d991ddcdb
child 12 faa5eb587542
permissions -rw-r--r--
Add content to the front page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     1
# Contributor: Ustalov "eveel" Dmitry <eveeel@gmail.com>
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     2
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     3
pkgname="dsss"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     4
pkgver="0.73"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     5
pkgrel=3
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     6
pkgdesc="DSSS, the D Shared Software System"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     7
arch=(i686 x86_64)
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     8
url="http://dsource.org/projects/dsss"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
     9
license=('MIT')
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    10
makedepends=('gcc')
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    11
depends=('d-compiler' 'libphobos')
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    12
source=("http://svn.dsource.org/projects/dsss/downloads/${pkgver}/dsss-${pkgver}.tar.bz2")
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    13
md5sums=('c0699749e07f10fad550a0ab976d3751')
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    14
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    15
build() {
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    16
  cd "$startdir/src/${pkgname}-${pkgver}"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    17
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    18
  export MAKEFLAGS="-j1"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    19
  if [ "$(pacman -Q dmd)" != "" ]; then
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    20
    make -f Makefile.dmd.posix
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    21
  elif [ "$(pacman -Q gdc)" != "" ]; then
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    22
    make -f Makefile.gdc.posix
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    23
  else
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    24
    error "You should install dmd or gdc, before compiling dsss"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    25
    return 1
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    26
  fi
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    27
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    28
  ./dsss install \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    29
    --prefix="$startdir/pkg/usr" \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    30
    --libdir="$startdir/pkg/usr/lib" \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    31
    --includedir="$startdir/pkg/usr/include/d" \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    32
    --docdir="$startdir/pkg/usr/share/doc" \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    33
    --sysconfdir="$startdir/pkg/etc" \
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    34
    --scratchdir="$startdir/pkg/tmp"
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    35
}
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    36
c42d991ddcdb Add utils dir (sync scripts etc will go here)
Anders Bergh <anders1@gmail.com>
parents:
diff changeset
    37
# vim:set ts=2 sw=2 et: