blob: 92680eccd42686397cf7a520f1a2a879a5b6cc15 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Maintainer: Gustavo alvarez <sl1pkn07@gmail.com>
pkgname=kaudiocreator-git
pkgver=1.3.r886.f21c160
pkgrel=2
pkgdesc="A program for ripping and encoding Audio-CDs, encoding files from disk. (GIT version)"
arch=('x86_64')
url='https://kde.org/applications/en/unmaintained/org.kde.kaudiocreator'
license=('GPL')
depends=(
'gcc-libs' # libgcc_s.so
'glibc' # libstdc++.so libc.so
'qt5-base' # libQt5Core.so libQt5Gui.so libQt5Network.so libQt5Widgets.so
'bash'
'taglib1' # libtag.so
'libmusicbrainz5' 'libmusicbrainz5.so'
'libdiscid' # libdiscid.so
'kcodecs5' # libKF5Codecs.so
'kcompletion5' # libKF5Completion.so
'knotifyconfig5' # libKF5NotifyConfig.so
'ktextwidgets5' # libKF5TextWidgets.so
'kconfigwidgets5' # libKF5ConfigWidgets.so
'kconfig5' # libKF5ConfigCore.so libKF5ConfigGui.so
'kcmutils5' # libKF5KCMUtils.so
'phonon-qt5' # libphonon4qt5.so
'kxmlgui5' # libKF5XmlGui.so
'libkcompactdisc' # libKF5CompactDisc.so
'kcoreaddons5' # libKF5CoreAddons.so
'kio5' # libKF5KIOCore.so libKF5KIOWidgets.so
'kwidgetsaddons5' # libKF5WidgetsAddons.so
'knotifications5' # libKF5Notifications.so
'ki18n5' # libKF5I18n.so
'solid5' # libKF5Solid.so
'kservice5' # libKF5Service.so
'kdelibs4support' # libKF5KDELibs4Support.so
'hicolor-icon-theme'
)
makedepends=(
'git'
'extra-cmake-modules'
'kdoctools5'
'kdesignerplugin'
'kinit'
'doxygen'
'python'
)
conflicts=('kaudiocreator')
provides=('kaudiocreator')
source=(
'git+https://invent.kde.org/unmaintained/kaudiocreator.git'
'git+https://invent.kde.org/multimedia/libkcddb.git#branch=release/20.04'
'git+https://invent.kde.org/multimedia/libkcompactdisc.git#branch=release/20.04')
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd kaudiocreator
_ver="$(cat main.cpp | grep -m1 KAudioCreator | cut -d '"' -f6)"
echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
sed -e 's|SHARED|STATIC|g' \
-e 's|PRIVATE musicbrainz|&5|g' \
-i libkcddb/libkcddb/CMakeLists.txt
sed -e 's|SHARED|STATIC|g' \
-i libkcompactdisc/src/CMakeLists.txt
sed -e 's|TAGLIB_INCLUDE_DIR|Taglib_INCLUDE_DIRS|g' \
-e 's|TAGLIB|Taglib|g' \
-i kaudiocreator/CMakeLists.txt
}
build() {
cmake -S libkcddb -B build-libkcddb \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX="${srcdir}/fakeroot/usr" \
-DBUILD_TESTING=OFF
cmake --build build-libkcddb
cmake --install build-libkcddb
cmake -S libkcompactdisc -B build-libkcompactdisc \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX="${srcdir}/fakeroot/usr" \
-DBUILD_TESTING=OFF
cmake --build build-libkcompactdisc
cmake --install build-libkcompactdisc
export PKG_CONFIG_PATH=/usr/lib/taglib1/pkgconfig
cmake -S kaudiocreator -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=ON \
-DKF5Cddb_DIR="${srcdir}/fakeroot/usr/lib/cmake/KF5Cddb" \
-DKF5CompactDisc_DIR="${srcdir}/fakeroot/usr/lib/cmake/KF5CompactDisc"
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
make -C build DESTDIR="${pkgdir}" install
}
|