# $Id: PKGBUILD 112250 2014-05-30 13:34:01Z alucryd $ # Maintainer: Maxime Gauduin # Contributor: said # Contributor: clinx pkgname=rbutil pkgver=1.4.0 pkgrel=2 pkgdesc='Rockbox Utility' arch=('i686' 'x86_64') url='http://www.rockbox.org/twiki/bin/view/Main/RockboxUtility' license=("GPL") depends=('qt5-base' 'libusbx' 'libxkbcommon-x11') makedepends=('gendesk' 'qt5-tools') optdepends=('speex: voice files support') source=("http://download.rockbox.org/${pkgname}/source/RockboxUtility-v${pkgver}-src.tar.bz2") sha256sums=('bc28a58ac1f62055a39b072e7b41a162f407a8b83172c84790568235d4637e4c') prepare() { gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name="Rockbox Utility" --exec="RockboxUtility" --categories="Application;Utility;" --comment="Rockbox automated installer" } build() { cd RockboxUtility-v${pkgver}/${pkgname}/rbutilqt lrelease-qt5 rbutilqt.pro qmake-qt5 make } package(){ cd RockboxUtility-v${pkgver}/${pkgname}/rbutilqt install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,pixmaps}} install -m 755 {,"${pkgdir}"/usr/bin/}RockboxUtility install -m 644 icons/rockbox-256.png "${pkgdir}"/usr/share/pixmaps/rbutil.png install -m 644 {"${srcdir}","${pkgdir}"/usr/share/applications}/rbutil.desktop } #vim: ts=2 sw=2 et: