# Maintainer (AUR): kusakata <shohei atmark kusakata period com>
# Contributor (AUR): jperry <sh.jperry@gmail.com>
# use versionpkg

# parabola changes and rationale:
#  - corrected license

pkgname=gworkspace
pkgver=0.9.4
pkgrel=1
pkgdesc="The GNUstep Workspace"
arch=("x86_64" "i686" "armv7h")
url="http://www.gnustep.org/experience/GWorkspace.html"
license=('GPL2')
depends=(gnustep-base gnustep-gui gnustep-back)
makedepends=(gcc-objc)
provides=(gworkspace)
conflicts=(gworkspace)
replaces=(gworkspace.app-svn)
backup=()
install=
source=(ftp://ftp.gnustep.org/pub/gnustep/usr-apps/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('406256f470781bc3be2670611276780f')


build() {
  cd $srcdir/$pkgname-$pkgver
  # necessary to set environment if not in user startup.
  . /usr/share/GNUstep/Makefiles/GNUstep.sh
  ./configure --prefix=/opt/GNUstep
  make || return 1
}

package() {
  cd "${srcdir}/$pkgname-$pkgver"
  . /usr/share/GNUstep/Makefiles/GNUstep.sh
  make DESTDIR=$pkgdir install || return 1
}

