blob: de442f87ded0abce265339048ed1130e97748258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: PKGBUILD 59163 2011-11-21 12:54:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Enrico Morelli <morelli@cerm.unifi.it>
pkgname=openmotif
pkgver=2.3.3
pkgrel=1
pkgdesc="Open Motif"
arch=('i686' 'x86_64')
url="http://www.motifzone.org/"
license=('GPL')
depends=(libxext libxp libxft libxt libxmu libpng libjpeg)
makedepends=(xbitmaps xproto printproto xextproto automake)
conflicts=(lesstif)
options=('!libtool')
source=(http://www.motifzone.org/files/public_downloads/openmotif/2.3/$pkgver/openmotif-$pkgver.tar.gz)
md5sums=('fd27cd3369d6c7d5ef79eccba524f7be')
build() {
_automakever=`pacman -Q automake | cut -f 2 -d \ | cut -f 1 -d -`
cd $srcdir/openmotif-$pkgver
[ $NOEXTRACT -eq 1 ] || patch -p0 Makefile.in <<EOF
--- Makefile.in.org 2007-06-11 09:32:01.000000000 +0400
+++ Makefile.in 2007-06-19 19:13:04.000000000 +0400
@@ -249,8 +249,7 @@
include \\
tools \\
clients \\
- doc \\
- demos
+ doc
AUTOMAKE_OPTIONS = 1.4
all: all-recursive
EOF
sed -i 's#if (!png_check_sig(sig, 8))#if (png_sig_cmp(sig, 0, 8))#' lib/Xm/Png.c
ln -s -f /usr/share/automake-${_automakever}/compile compile
ln -s -f /usr/share/libtool/config/config.guess config.guess
ln -s -f /usr/share/libtool/config/config.sub config.sub
ln -s -f /usr/share/automake-${_automakever}/depcomp depcomp
ln -s -f /usr/share/automake-${_automakever}/install-sh install-sh
ln -s -f /usr/share/automake-${_automakever}/missing missing
ln -s -f /usr/share/libtool/config/ltmain.sh ltmain.sh
touch NEWS AUTHORS
[ $NOEXTRACT -eq 1 ] || autoreconf -i;
[ $CARCH == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
[ $NOEXTRACT -eq 1 ] || ./configure --with-x --prefix=/usr
make -j1
make DESTDIR=$pkgdir install
# cleanup
(cd $pkgdir/usr/share/man/man3/ && mv Shell.3 OpenMotif-Shell.3)
}
|