2011-08-14 16:36:23 +00:00
# $Id: PKGBUILD 54066 2011-08-13 05:45:42Z ebelanger $
2011-01-26 05:47:29 +00:00
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2012-07-29 19:15:08 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-01-26 05:47:29 +00:00
# - updated RusXMMS2 download location
2011-08-14 16:36:23 +00:00
# - replaced x86 with arm/armv7h in the case statement
2011-01-26 05:47:29 +00:00
pkgname = rusxmms
pkgver = 1.2.11_csa43
_xmmsver = 1.2.11
_csaver = csa43
2011-08-14 16:36:23 +00:00
pkgrel = 3
2011-01-26 05:47:29 +00:00
pkgdesc = "XMMS with librcc"
arch = ( i686 x86_64)
license = ( GPL)
url = "http://rusxmms.sourceforge.net/"
2011-08-14 16:36:23 +00:00
depends = ( libsm libxxf86vm zlib gtk libvorbis alsa-lib libgl librcc librcd openssl)
2011-01-26 05:47:29 +00:00
makedepends = ( mesa patch)
provides = ( xmms)
conflicts = ( xmms)
options = ( '!libtool' '!distcc' )
source = ( http://xmms.org/files/1.2.x/xmms-${ _xmmsver } .tar.bz2 \
2011-08-14 16:36:23 +00:00
http://dside.dyndns.org/files/rusxmms/RusXMMS2-${ _csaver } .tar.bz2)
2011-01-26 05:47:29 +00:00
md5sums = ( 'f3e6dbaf0b3f571a532ab575656be506'
'8f387dd2e5c95f8730979e09687b6e02' )
build( ) {
2011-08-14 16:36:23 +00:00
cd " ${ srcdir } " /xmms-${ _xmmsver }
2011-01-26 05:47:29 +00:00
if true; then
2011-08-14 16:36:23 +00:00
ln -s " $srcdir " /RusXMMS2 " $srcdir " /xmms-${ _xmmsver } /RusXMMS2
( cd " $srcdir " /xmms-${ _xmmsver } /RusXMMS2 && ./apply.sh)
2011-01-26 05:47:29 +00:00
2011-08-14 16:36:23 +00:00
mv " $srcdir " /RusXMMS2/source/* " $srcdir " /xmms-${ _xmmsver } /libxmms/
# sed -i 's#charset.c charset.h#charset.c charset.h rcc.h rcc.c rcc_lang.h#g' "$srcdir"/xmms-${_xmmsver}/libxmms/Makefile.am && \
# I already remove esound from repo and it has some autotools errors that I can't seem to figure out. So let's use a hack to get the esound removal rebuild done.
# aclocal
# automake
autoconf
sed -i 's/unicode.c//g' Input/mpg123/Makefile.in
sed -i 's/unicode.lo//g' Input/mpg123/Makefile.in
( cd libxmms && aclocal && automake && autoconf)
2011-01-26 05:47:29 +00:00
case $CARCH in
2011-08-14 16:36:23 +00:00
armv7h)
./configure --prefix= /usr --disable-mikmod --disable-simd --disable-vorbis --disable-vorbistest
2011-01-26 05:47:29 +00:00
; ;
2012-07-29 19:15:08 +00:00
armv6h)
./configure --prefix= /usr --disable-mikmod --disable-simd --disable-vorbis --disable-vorbistest
; ;
2011-01-26 05:47:29 +00:00
arm)
./configure --prefix= /usr --disable-mikmod --enable-simd --disable-vorbis --disable-vorbistest
; ;
*)
return 1
; ;
esac
fi
2011-08-14 16:36:23 +00:00
make
}
package( ) {
cd " ${ srcdir } " /xmms-${ _xmmsver }
make DESTDIR = " $pkgdir " install
2011-01-26 05:47:29 +00:00
2011-08-14 16:36:23 +00:00
mkdir -p " $pkgdir " /usr/share/{ applications,pixmaps}
install -m 644 xmms/xmms.desktop " $pkgdir " /usr/share/applications
install -m 644 xmms/xmms_mini.xpm " $pkgdir " /usr/share/pixmaps/xmms.xpm
2011-01-26 05:47:29 +00:00
# don't want wmxmms
2011-08-14 16:36:23 +00:00
rm -rf " $pkgdir " /usr/bin/wmxmms " $pkgdir " /usr/share/xmms
rm -f " $pkgdir " /usr/share/man/man1/{ gnomexmms.1,wmxmms.1}
2011-01-26 05:47:29 +00:00
}