blob: 4a507c4a1099ddad0c1fd3c660f6d528c19255d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
pkgbase=rbutil-git
pkgname=('rbutil-git')
pkgver=1.5.1.1284.g94d6265df0
pkgrel=1
arch=('x86_64')
url='https://www.rockbox.org/twiki/bin/view/Main/RockboxUtility'
license=('GPL-2.0-or-later')
depends=(
gcc-libs
glibc
libbz2.so
libusb-1.0.so
qt5-base
qt5-multimedia
qt5-svg
zlib
)
makedepends=(
cmake
git
ninja
qt5-tools
)
optdepends=('speex: voice files support')
source=('git+https://git.rockbox.org/cgit/rockbox.git'
'rbutil.desktop')
sha256sums=('SKIP'
'6c7e7f8aa3dbbf1ace8cd43dd057649cfd329224e899fb83d739113a8a15be9d')
pkgver() {
cd rockbox
git describe --tags | sed 's/rbutil_//' | sed 's:-:.:g'
}
prepare() {
sed '/add_subdirectory(themeeditor)/d' -i rockbox/utils/CMakeLists.txt
}
build() {
cmake -S rockbox/utils -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
cmake --build build
}
package(){
install -Dm 755 build/rbutilqt/RockboxUtility -t "${pkgdir}"/usr/bin/
install -Dm 644 rockbox/utils/rbutilqt/RockboxUtility.desktop -t "${pkgdir}"/usr/share/applications/
install -Dm 644 rockbox/docs/logo/rockbox-clef.svg -t "${pkgdir}"/usr/share/pixmaps/
}
# vim: ts=2 sw=2 et:
|