desktop/kfilebox/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2014-05-22 08:06:59 +08:00
# Maintainer: Neophytos Kolokotronis <tetris AT @gmail DOT com>
# Contributions from AUR: https://aur.archlinux.org/packages/kfilebox/
pkgname=kfilebox
2015-09-02 00:48:54 +08:00
pkgver=0.4.10.r8.g5294287
2015-09-02 00:53:10 +08:00
pkgrel=2
2014-05-22 08:06:59 +08:00
pkgdesc="KDE4 Dropbox client (with own daemon)"
arch=('x86_64')
url="http://kdropbox.deuteros.es"
license=('GPL')
2015-09-02 00:48:54 +08:00
depends=('kconfig' 'kcoreaddons' 'ki18n' 'knotifications' 'dropbox')
makedepends=('extra-cmake-modules' 'qt5-tools')
2014-05-22 08:06:59 +08:00
categories=('network' 'backup' 'cloud')
2015-09-02 00:48:54 +08:00
source=("git+https://github.com/marcpayne/kfilebox.git#branch=qt5-kf5-port")
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
2014-05-22 08:06:59 +08:00
prepare() {
2015-09-02 00:48:54 +08:00
cd ${srcdir}/${pkgname}
[[ -e build ]] && rm -rf build
mkdir build
2014-05-22 08:06:59 +08:00
}
build() {
2015-09-02 00:48:54 +08:00
cd "${srcdir}/${pkgname}/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
2014-05-22 08:06:59 +08:00
make
}
package() {
2015-09-02 00:48:54 +08:00
cd "${srcdir}/${pkgname}/build"
make DESTDIR=${pkgdir} install
2015-09-02 00:53:10 +08:00
2015-09-02 00:48:54 +08:00
# Move wrong locale name
mv -v ${pkgdir}/usr/share/locale/tw/ ${pkgdir}/usr/share/locale/zh_TW/
mv -v ${pkgdir}/usr/share/locale/zh ${pkgdir}/usr/share/locale/zh_CN/
2014-05-22 08:06:59 +08:00
2015-09-02 00:53:10 +08:00
# Desktop file is wrong
sed "s|Icon=/usr/share/kfilebox/kfilebox.png|Icon=kfilebox|g" -i \
${pkgdir}/usr/share/applications/kfilebox.desktop
}