public
Created

PKGBUILD kmplayer-svn.install

  • Download Gist
PKGBUILD kmplayer-svn.install.sh
Shell
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
$ cat PKGBUILD
# Contributor: Emanuele Rossi <newdna1510@yahoo.it>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Jeroen Maris <jamaris@gmail.com>
# Contributor: Nuno Aniceto <nuno.aja@gmail.com>
arch=(i686 x86_64)
pkgname=kmplayer-svn
pkgver=1316685
pkgrel=1
pkgdesc="KMplayer svn version for KDE4"
url="http://kmplayer.kde.org/"
license="GPL"
depends=('kdelibs' 'kdebase-runtime')
optdepends=('gtk2')
makedepends=('subversion' 'cmake' 'automoc4')
conflicts=('kmplayer')
provides=('kmplayer')
install="${pkgname}.install"
source=()
md5sums=()
_svntrunk=svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/kmplayer/
_svnmod=kmplayer
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/usr .
make || return 1
make DESTDIR=$pkgdir/ install
rm -rf $srcdir/$_svnmod-build
# this should not be necessary, but these icons
# are already provided by kdebase-workspace
rm -rf $pkgdir/usr/share/icons/oxygen
# make KMPlayer appear in KDE's menu:
mkdir -p $pkgdir/usr/share/applications/kde4
cp $startdir/KMPlayer.desktop $pkgdir/usr/share/applications/kde4/KMplayer.desktop
}
# vim:syntax=sh
 
$ cat kmplayer-svn.install
update-desktop-database -q
xdg-icon-resource
#gtk-update-icon-cache

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.