sources/libtango/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

# Maintainer: Anders Bergh <anders1@gmail.com>
pkgname=libtango
pkgver=0.99.3
pkgrel=2
pkgdesc="The Tango standard library for the D programming language."
arch=('i686')
url="http://dsource.org/projects/tango"
source=(http://downloads.dsource.org/projects/tango/$pkgver/tango-$pkgver-src.tar.gz
        dmd.conf)
md5sums=('8fd4210441f8b84f1de9d2513915b41c'
         'b16c7f8eeb3adebe805ca03a4b183efc')
depends=('d-dmd')
license=('custom')
conflicts=('libphobos')

build() {
  cd $startdir/src/tango-$pkgver-src

  cd lib
  ./build-dmd.sh || return 1
  ./build-tango.sh dmd || return 1

  mkdir -p $startdir/pkg/usr/lib
  mkdir -p $startdir/pkg/usr/include{,/d}
  cp -f $startdir/src/tango-$pkgver-src/lib/libtango-base-dmd.a $startdir/pkg/usr/lib || return 1
  cp -f $startdir/src/tango-$pkgver-src/lib/libtango-user-dmd.a $startdir/pkg/usr/lib || return 1
  cp -f $startdir/src/tango-$pkgver-src/object.di $startdir/pkg/usr/include/d || return 1
  cp -Rf $startdir/src/tango-$pkgver-src/tango $startdir/pkg/usr/include/d || return 1
  cp -Rf $startdir/src/tango-$pkgver-src/std $startdir/pkg/usr/include/d || return 1

  mkdir -p $startdir/pkg/etc
  cp $startdir/src/dmd.conf $startdir/pkg/etc || return 1
}