qt4-fsarchiver now is qt5-fsarchiver and update to 0.6.19.19

This commit is contained in:
gnastyle 2016-06-12 16:43:29 +02:00
parent 1650e92a11
commit c535c6095b
5 changed files with 60 additions and 49 deletions

View File

@ -1,49 +0,0 @@
pkgname=qt4-fsarchiver
pkgver=0.6.19.18
_pkgver=0.6.19-18
pkgrel=1
pkgdesc='GUI for fsarchiver'
arch=('x86_64')
url='http://sourceforge.net/projects/qt4-fsarchiver/'
license=('GPL')
depends=('fsarchiver' 'kde-runtime')
makedepends=('qt')
categories=('utils')
screenshot=('http://media.cdn.ubuntu-de.org/wiki/attachments/02/04/verzeichnis.jpg')
source=("http://sourceforge.net/projects/${pkgname}/files/source/${pkgname}-${_pkgver}.tar.gz"
"qt4-fsarchiver.png")
install="${pkgname}.install"
sha512sums=('297ad8d11ee3a688473e106b9a427a68b7209f52d3e8200ed39cb145d10b8e5135bb7a52b234d33e535568354281718affe15fc560ffcfc15051a24f4bc82316'
'713cf469ea2165b6038e581ec42d7bf6486e39cc9a64f6b1eae9b2e9d69fdc1a5987e34cd8717a23435ded4e5f33784202ffc01c30ed3153192dfab46dcbbb7b')
build() {
cd "${srcdir}/${pkgname}"
qmake
make
}
package() {
cd "${srcdir}/${pkgname}"
make INSTALL_ROOT="${pkgdir}" install
install -d ${pkgdir}/usr/share/pixmaps
install -d ${pkgdir}/usr/share/qt/translations
rm -R ${pkgdir}/usr/share/qt4
install -D ${srcdir}/${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
rm -R ${pkgdir}/usr/share/app-install
install -D -m644 ${srcdir}/${pkgname}/translations/*.qm ${pkgdir}/usr/share/qt/translations
# workaround for fixed destination path in qmake project
install -d ${pkgdir}/usr/bin
mv ${pkgdir}/usr/sbin/findsmb-qt ${pkgdir}/usr/bin/
mv ${pkgdir}/usr/sbin/qt4-fsarchiver ${pkgdir}/usr/bin/
rm -rf ${pkgdir}/usr/sbin
sed s/Terminal=true/Terminal=false/ -i ${pkgdir}/usr/share/applications/kde-qt4-fsarchiver.desktop
sed s/sudo/kdesu/ -i ${pkgdir}/usr/share/applications/kde-qt4-fsarchiver.desktop
sed -i s!/usr/share/app-install/icons/harddrive.png!qt4-fsarchiver.png! \
${pkgdir}/usr/share/applications/kde-qt4-fsarchiver.desktop
rm ${pkgdir}/usr/share/applications/mate-qt4-fsarchiver.desktop
rm ${pkgdir}/usr/share/applications/gnome-qt4-fsarchiver.desktop
}

49
qt5-fsarchiver/PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
pkgname=qt5-fsarchiver
pkgver=0.6.19.19
_pkgver=0.6.19-19
pkgrel=1
pkgdesc='GUI for fsarchiver'
arch=('x86_64')
url='http://sourceforge.net/projects/qt4-fsarchiver/'
license=('GPL')
depends=('fsarchiver' 'kdesu' 'qt5-base')
makedepends=('qt5-tools')
categories=('utils')
replaces=('qt4-fsarchiver')
screenshot=('http://media.cdn.ubuntu-de.org/wiki/attachments/02/04/verzeichnis.jpg')
source=("http://sourceforge.net/projects/qt4-fsarchiver/files/${pkgname}/source/${pkgname}-${_pkgver}.tar.gz"
"${pkgname}.png"
"${pkgname}.desktop")
install="${pkgname}.install"
sha1sums=('44fbf7b312ca689ae0571708e16c5d5a75fd1890'
'1f44233bf16f0d67dc285e98eaa8b36dff9f9d33'
'cf76cacb4ea61719c4dc9d8f241862130492ea5e')
build() {
cd "${srcdir}/${pkgname}"
qmake-qt5
make
}
package() {
cd "${srcdir}/${pkgname}"
make INSTALL_ROOT="${pkgdir}" install
# install -d ${pkgdir}/usr/share/pixmaps
# install -d ${pkgdir}/usr/share/qt/translations
# rm -R ${pkgdir}/usr/share/qt4
# rm -R ${pkgdir}/usr/share/app-install
# install -D -m644 ${srcdir}/${pkgname}/translations/*.qm ${pkgdir}/usr/share/qt/translations
# install icon
install -D ${srcdir}/${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
# .desktop file
install -D ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
rm ${pkgdir}/usr/share/applications/mate-qt5-fsarchiver.desktop
rm ${pkgdir}/usr/share/applications/gnome-qt5-fsarchiver.desktop
rm ${pkgdir}/usr/share/applications/kde-qt5-fsarchiver.desktop
# remove unused files
rm -r ${pkgdir}/usr/share/app-install
}

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=qt5-fsarchiver
Name[de_DE]=qt5-fsarchiver
Comment=Qt GUI for fsarchiver
Exec=kdesu qt5-fsarchiver
Icon=qt5-fsarchiver
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=false

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB