#Maintainer: Christopher Rey P. Baluyut pkgname=amarok pkgver=2.3.0 pkgrel=1 zenver=64 arch=i686 source=("http://ftp.kddlabs.co.jp/pub/X11/kde/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.bz2") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/shingoku/kde/$pkgname/source docs=("AUTHORS" "COPYING*" "INSTALL" "OXYGEN" "README" "TODO") url="http://amarok.kde.org" extradepends=('oxygen-icons','qtscriptgenerator') doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database /usr/share/applications >/dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "amarok (music player)" "Amarok is a music player for Linux and Unix with an intuitive" "interface. Amarok makes playing the music you love easier than ever" "before -- and looks good doing it." ) build() { if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi if [ ! -r /usr/lib/mysql/libmysqld.a ]; then cat << EOF ERROR: missing /usr/lib/mysql/libmysqld.a please install the mysql-embedded package, then try building again. EOF exit 1 fi export QTSCRIPTS=/usr/lib/qt4/plugins/script cd $startdir/src/$pkgname-$pkgver mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="-O2 -march=i686 -mtune=i686" \ -DCMAKE_CXX_FLAGS:STRING="-O2 -march=i686 -mtune=i686" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMAN_INSTALL_DIR=/usr/man \ -DSYSCONF_INSTALL_DIR=/etc/kde \ -DLIB_SUFFIX="" \ .. make -j2 || exit 1 make install DESTDIR=$startdir/pkg || exit 1 }