mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
48 lines
1.8 KiB
Bash
48 lines
1.8 KiB
Bash
pkgname=qt4-fsarchiver
|
|
pkgver=0.6.19.14
|
|
_pkgver=0.6.19-14
|
|
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=('9f791c0916afa8bc054b695cb60ce361ce4538a9423ea485d2c9eab92b04eff449cbd5423ab0f4874b98a56bb970f0e39f3bcff3c90a3000efb49b837bf0d95e'
|
|
'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/qt4-fsarchiver.desktop
|
|
sed s/sudo/kdesu/ -i ${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop
|
|
sed -i s!/usr/share/app-install/icons/harddrive.png!qt4-fsarchiver.png! \
|
|
${pkgdir}/usr/share/applications/qt4-fsarchiver.desktop
|
|
|
|
}
|