summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/jade/PKGBUILD41
l---------abs/core/jade/jade-1.2.1-8.src.tar.gz1
-rw-r--r--abs/extra/openjade/PKGBUILD63
-rw-r--r--abs/extra/openjade/openjade.install23
4 files changed, 86 insertions, 42 deletions
diff --git a/abs/core/jade/PKGBUILD b/abs/core/jade/PKGBUILD
deleted file mode 100644
index 1fa51e1..0000000
--- a/abs/core/jade/PKGBUILD
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id: PKGBUILD 161891 2012-06-16 05:10:30Z eric $
-# Maintainer:
-# Contributor: dorphell <dorphell@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-
-pkgname=jade
-pkgver=1.2.1
-pkgrel=8
-_debpatch=47.1
-pkgdesc="James Clark's DSSSL Engine"
-url='http://www.jclark.com/jade/'
-arch=('i686' 'x86_64')
-license=('custom')
-depends=('gcc-libs')
-replaces=('openjade')
-options=('!libtool' '!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'
- '6c9c0109e3b6d283cb7a18ec8a672575')
-
-build() {
- cd "${srcdir}"/${pkgname}-${pkgver}
-
- export CXXFLAGS="$CXXFLAGS -fpermissive"
-
- patch -p1 -i "${srcdir}"/jade_${pkgver}-${_debpatch}.diff
-
- chmod 755 configure
- ./configure --prefix=/usr --enable-default-catalog=/usr/share/sgml/catalog
-
- make
-}
-
-package() {
- cd "${srcdir}"/${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
-}
diff --git a/abs/core/jade/jade-1.2.1-8.src.tar.gz b/abs/core/jade/jade-1.2.1-8.src.tar.gz
deleted file mode 120000
index cc254e3..0000000
--- a/abs/core/jade/jade-1.2.1-8.src.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/data/pkg_repo/src_packages/jade-1.2.1-8.src.tar.gz \ No newline at end of file
diff --git a/abs/extra/openjade/PKGBUILD b/abs/extra/openjade/PKGBUILD
new file mode 100644
index 0000000..ced29b6
--- /dev/null
+++ b/abs/extra/openjade/PKGBUILD
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr@archlinux.org>
+
+pkgname=openjade
+pkgver=1.3.2
+pkgrel=5
+_debpatch=13
+pkgdesc="Implementation of the DSSSL language"
+arch=('x86_64')
+url="http://openjade.sourceforge.net/"
+license=('custom')
+depends=('opensp' 'sgml-common')
+makedepends=('perl-perl4-corelibs')
+install=${pkgname}.install
+conflicts=('jade')
+provides=('jade')
+source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ http://ftp.debian.org/debian/pool/main/o/${pkgname}1.3/${pkgname}1.3_${pkgver}-${_debpatch}.diff.gz)
+sha256sums=('1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1'
+ '11d90e242eae60ce06bf27fd234adbd8efd7d4a9a4a2da058faa4e8336dc423a')
+
+prepare() {
+ cd ${pkgname}-$pkgver
+ patch -Np1 -i $srcdir/${pkgname}1.3_${pkgver}-${_debpatch}.diff
+ # https://bugs.archlinux.org/task/55331 / https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9
+ export CXXFLAGS+=' -fno-lifetime-dse'
+}
+
+build() {
+ cd ${pkgname}-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-default-catalog=/etc/sgml/catalog \
+ --datadir=/usr/share/sgml/openjade-${pkgver} \
+ --enable-html \
+ --enable-http \
+ --enable-mif
+ make
+}
+
+package() {
+ cd ${pkgname}-$pkgver
+ make DESTDIR="$pkgdir/" install install-man
+
+ # add unversioned symlink
+ ln -svf openjade-${pkgver} ${pkgdir}/usr/share/sgml/openjade
+
+ # openjade -> jade compat symlinks
+ ln -svf /usr/bin/openjade $pkgdir/usr/bin/jade
+ ln -svf /usr/lib/libogrove.so $pkgdir/usr/lib/libgrove.so
+ ln -svf /usr/lib/libospgrove.so $pkgdir/usr/lib/libspgrove.so
+ ln -svf /usr/lib/libostyle.so $pkgdir/usr/lib/libstyle.so
+ ln -svf /usr/share/man/man1/openjade.1.gz $pkgdir/usr/share/man/man1/jade.1.gz
+
+ # license
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ install -dm755 "$pkgdir"/usr/share/sgml/openjade-${pkgver}
+ install -m644 dsssl/builtins.dsl dsssl/dsssl.dtd \
+ dsssl/style-sheet.dtd dsssl/fot.dtd \
+ dsssl/catalog "$pkgdir"/usr/share/sgml/openjade-${pkgver}
+}
diff --git a/abs/extra/openjade/openjade.install b/abs/extra/openjade/openjade.install
new file mode 100644
index 0000000..7b060b5
--- /dev/null
+++ b/abs/extra/openjade/openjade.install
@@ -0,0 +1,23 @@
+post_install() {
+ /usr/bin/install-catalog --add \
+ /etc/sgml/openjade-1.3.2.cat \
+ /usr/share/sgml/openjade-1.3.2/catalog > /dev/null 2>&1
+
+ /usr/bin/install-catalog --add \
+ /etc/sgml/openjade.cat \
+ /etc/sgml/openjade-1.3.2.cat > /dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ /usr/bin/install-catalog --remove \
+ /etc/sgml/openjade-1.3.2.cat \
+ /usr/share/sgml/openjade-1.3.2/catalog > /dev/null 2>&1
+
+ /usr/bin/install-catalog --remove \
+ /etc/sgml/openjade.cat \
+ /etc/sgml/openjade-1.3.2.cat > /dev/null 2>&1
+}