qsmmp-2013-09-16

This commit is contained in:
arcan1s 2013-09-16 03:18:50 +04:00
parent 7937ce690b
commit 12f27801e9
3 changed files with 9 additions and 70 deletions

View File

@ -2,50 +2,27 @@
# Maintainer Evgeniy "arcanis" Alekseev <esalexeev@gmail.com>
pkgname=qmmp-qsmmp-git
_pkgname=qmmp-qsmmp
pkgver=20130914
pkgrel=2
pkgdesc="Amarok-like interface for qmmp. Git version."
_gitname=qsmmp
pkgver=20130916
pkgrel=1
pkgdesc="Amarok-like interface for qmmp. Git version"
arch=('i686' 'x86_64')
url="http://gitorious.org/qsmmp"
license=('GPL2')
depends=('qmmp' 'libqxt')
makedepends=('git')
install=${_pkgname}.install
source=(${_pkgname}.desktop)
md5sums=('c22490f772c753f2ed6e611317b8d8d4')
_gitroot="git://gitorious.org/qsmmp/qsmmp.git"
_gitname="qsmmp"
source=("${_gitname}::git+https://gitorious.org/qsmmp/qsmmp.git#branch=qmmp-9999")
md5sums=('SKIP')
build()
{
cd ${srcdir}
msg "Connecting to GIT server..."
if [[ -d ${_gitname} ]]; then
cd ${_gitname} && git pull origin
msg "The local files are updated"
else
git clone ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf ${srcdir}/${_gitname}-build
cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
msg "Checkout to qmmp-9999"
git checkout origin/qmmp-9999
msg "Fix bug with building"
git reset --hard 3a477c0
qmake-qt4 PREFIX=/usr -Wnone
cd ${srcdir}/${_gitname}
qmake-qt4 PREFIX=/usr
make || return 1
}
package()
{
cd ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}
make INSTALL_ROOT=${pkgdir} install || return 1
install -D -m644 ${srcdir}/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop || return 1
}

View File

@ -1,27 +0,0 @@
[Desktop Entry]
X-Desktop-File-Install-Version=0.11
Name=Qmmp-qsmmp
Comment=Qt4-based Multimedia Player
Comment[ru]=Медиа-проигрыватель на базе Qt4
Comment[uk]=Медіа-програвач на базі Qt4
Comment[cs]=Přehrávač hudby založený na Qt
Comment[tr]=Qt4 tabanlı Çokluortam Oynatıcı
Comment[de]=Qt4-basierter Audio-Player
Comment[zh_CN]=Qt4
Comment[zh_TW]=Qt4
GenericName=Audio player
GenericName[cs]=Přehrávač hudby
GenericName[de]=Audio-Player
GenericName[ru]=Аудио-проигрыватель
GenericName[uk]=Медіа-програвач
GenericName[tr]=Ses Oynatıcı
GenericName[zh_CN]=
GenericName[zh_TW]=
Exec=qmmp-qsmmp %F
Icon=qmmp
Terminal=false
Type=Application
Categories=AudioVideo;Player;Audio;Qt;
MimeType=application/x-ogg;audio/mp3;audio/mpeg;audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-musepack;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mpegurl;audio/x-it;audio/x-mod;audio/x-ape;application/x-cue;inode/directory;
X-KDE-StartupNotify=false

View File

@ -1,11 +0,0 @@
post_install() {
which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}