[arch-commits] Commit in rbutil/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Oct 17 15:11:12 UTC 2020
Date: Saturday, October 17, 2020 @ 15:11:12
Author: dvzrv
Revision: 725492
upgpkg: rbutil 1.4.1.r381.g94eb1df58b-1: Rebuild to remove legacy libusbx dependency.
Replace legacy libusbx depends with libusb in makedepends.
Add (required) qt5-multimedia to depends.
Switch to git sources, as release 1.4.1 fails during linking and backporting patches is super nontrivial.
Add pkgver() function to retrieve sane version string.
Add all available sodeps in package() and the respective packages to makedepends.
Update contributor info.
Modified:
rbutil/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-17 14:48:17 UTC (rev 725491)
+++ PKGBUILD 2020-10-17 15:11:12 UTC (rev 725492)
@@ -1,9 +1,11 @@
# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: David Runge <dvzrv at archlinux.org>
# Contributor: said <atvordhosbn at gmail.com>
# Contributor: clinx <clinx.hacker at googlemail.com>
+_name=rockbox
pkgname=rbutil
-pkgver=1.4.1
+pkgver=1.4.1.r381.g94eb1df58b
pkgrel=1
pkgdesc='Rockbox Utility'
arch=(x86_64)
@@ -12,23 +14,34 @@
depends=(
crypto++
qt5-base
- libusbx
+ qt5-multimedia
libxkbcommon-x11
+ zlib
)
makedepends=(
gendesk
+ git
+ libusb
qt5-tools
)
optdepends=('speex: voice files support')
-source=(https://download.rockbox.org/${pkgname}/source/RockboxUtility-v${pkgver}-src.tar.bz2)
-sha256sums=('3e1949f9f358e3f423a1cef6cd5f563be90da85e5b650bb03a1e04a40270a97e')
+# NOTE: commit with latest Qt fixes
+_commit=94eb1df58b
+# NOTE: using git sources, as the build fails during linking with 1.4.1
+source=("git+https://git.${_name}.org/cgit/${_name}.git#commit=${_commit}")
+sha256sums=('SKIP')
prepare() {
gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name="Rockbox Utility" --exec="RockboxUtility" --categories="Application;Utility;" --comment="Rockbox automated installer"
}
+pkgver() {
+ cd "${_name}"
+ git describe --long --exclude '*archos_retired*' --tags | sed 's/\([^-]*-g\)/r\1/;s/rbutil_//;s/-/./g'
+}
+
build() {
- cd RockboxUtility-v${pkgver}/${pkgname}/rbutilqt
+ cd "${_name}/${pkgname}/rbutilqt"
lrelease-qt5 rbutilqt.pro
qmake-qt5
@@ -36,7 +49,8 @@
}
package(){
- cd RockboxUtility-v${pkgver}/${pkgname}/rbutilqt
+ depends+=('libusb-1.0.so')
+ cd "${_name}/${pkgname}/rbutilqt"
install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,pixmaps}}
install -m 755 {,"${pkgdir}"/usr/bin/}RockboxUtility
More information about the arch-commits
mailing list