archrelease: copy trunk to extra-x86_64
[arch-packages.git] / openjade / trunk / PKGBUILD
blobf2027b7323f9d1629a2b8452f7552f5b6bdb4978
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=openjade
4 pkgver=1.3.2
5 pkgrel=6
6 _debpatch=13
7 pkgdesc="Implementation of the DSSSL language"
8 arch=('x86_64')
9 url="http://openjade.sourceforge.net/" # no https
10 license=('custom')
11 depends=('opensp' 'sgml-common')
12 makedepends=('perl-perl4-corelibs')
13 install=${pkgname}.install
14 conflicts=('jade')
15 provides=('jade')
16 source=(https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
17         https://deb.debian.org/debian/pool/main/o/${pkgname}1.3/${pkgname}1.3_${pkgver}-${_debpatch}.diff.gz)
18 sha256sums=('1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1'
19             '11d90e242eae60ce06bf27fd234adbd8efd7d4a9a4a2da058faa4e8336dc423a')
21 prepare() {
22   cd ${pkgname}-$pkgver
23   patch -Np1 -i "$srcdir"/${pkgname}1.3_${pkgver}-${_debpatch}.diff
24   # https://bugs.archlinux.org/task/55331 / https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9
25   export CXXFLAGS+=' -fno-lifetime-dse'
28 build() {
29   cd ${pkgname}-$pkgver
30   ./configure --prefix=/usr \
31     --mandir=/usr/share/man \
32     --enable-default-catalog=/etc/sgml/catalog \
33     --datadir=/usr/share/sgml/openjade-${pkgver} \
34     --enable-html \
35     --enable-http \
36     --enable-mif
37   make
40 package() {
41   cd ${pkgname}-$pkgver
42   make DESTDIR="$pkgdir/" install install-man 
43   
44   # add unversioned symlink
45   ln -svf openjade-${pkgver} "${pkgdir}"/usr/share/sgml/openjade
46   
47   # openjade -> jade compat symlinks
48   ln -svf /usr/bin/openjade "$pkgdir"/usr/bin/jade
49   ln -svf /usr/lib/libogrove.so "$pkgdir"/usr/lib/libgrove.so
50   ln -svf /usr/lib/libospgrove.so "$pkgdir"/usr/lib/libspgrove.so
51   ln -svf /usr/lib/libostyle.so "$pkgdir"/usr/lib/libstyle.so
52   ln -svf /usr/share/man/man1/openjade.1.gz "$pkgdir"/usr/share/man/man1/jade.1.gz
53   
54   # license
55   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
56   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
58   install -dm755 "$pkgdir"/usr/share/sgml/openjade-${pkgver}
59   install -m644 dsssl/builtins.dsl dsssl/dsssl.dtd \
60     dsssl/style-sheet.dtd dsssl/fot.dtd \
61     dsssl/catalog "$pkgdir"/usr/share/sgml/openjade-${pkgver}