summaryrefslogtreecommitdiff
path: root/extra/source/kde3-compat/arts/arts.SlackBuild
blob: a617c18c52b4c89190b159f21048a7e41f42e577 (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
#!/bin/sh
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-arts

VERSION=${VERSION:-1.5.10}
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-opt1}

rm -rf $PKG
mkdir -p $PKG/opt/kde3

# Avoid a version number in .la files:
if [ -d /opt/kde3/lib64/qt3 ]; then
  QTDIR=/opt/kde3/lib64/qt3
fi
cd $TMP
echo "Building arts-$VERSION.tar.bz2..."
tar xjvf $CWD/arts-$VERSION.tar.bz2
cd arts-$VERSION

QTDIR=/opt/kde3/lib64/qt3

zcat $CWD/arts.tmpdir.diff.gz | patch -p1 --verbose || exit 1

chown -R root:root .
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
  --prefix=/opt/kde3 \
  --libdir=/opt/kde3/lib64 \
  --sysconfdir=/opt/kde3/etc \
  --with-xinerama \
  --disable-debug \
  --program-prefix="" \
  --program-suffix="" \
  --build=$ARCH-slackware-linux
make -j4 || exit 1
make install DESTDIR=$PKG

mkdir -p $PKG/usr/doc/arts-$VERSION
cp -a \
  COPYING* INSTALL doc/NEWS doc/README doc/TODO \
  $PKG/usr/doc/arts-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then
  gzip -9 $PKG/usr/man/man?/*
fi

cd $PKG
makepkg -l y -c n ../arts-$VERSION-$ARCH-$BUILD.txz