# $Id: PKGBUILD 197761 2013-10-29 19:12:18Z eric $ # Maintainer: # Contributor: dorphell # Contributor: Tom Newsom pkgname=jade pkgver=1.2.1 pkgrel=9 _debpatch=47.3 pkgdesc="James Clark's DSSSL Engine" url='http://www.jclark.com/jade/' arch=('i686' 'x86_64' 'mips64el') license=('custom') depends=('gcc-libs') replaces=('openjade') options=('!makeflags') source=("ftp://ftp.jclark.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz" "http://ftp.debian.org/debian/pool/main/j/jade/jade_${pkgver}-${_debpatch}.diff.gz") md5sums=('4239670ca6b578bff68b8c2e7cd1225f' 'dc50fb2aad40ad4b26373953805fe4fc') prepare() { cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}"/jade_${pkgver}-${_debpatch}.diff } build() { cd ${pkgname}-${pkgver} export CXXFLAGS="$CXXFLAGS -fpermissive" chmod 755 configure ./configure --prefix=/usr --enable-default-catalog=/usr/share/sgml/catalog make } package() { cd ${pkgname}-${pkgver} install -d -m755 "${pkgdir}"/usr/lib make prefix="${pkgdir}"/usr install mv "${pkgdir}"/usr/bin/sx "${pkgdir}"/usr/bin/sgml2xml install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }