forked from AdrianTM/mx-tools
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathPKGBUILD
More file actions
60 lines (48 loc) · 1.7 KB
/
PKGBUILD
File metadata and controls
60 lines (48 loc) · 1.7 KB
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
# Maintainer: Adrian <adrian@mxlinux.org>
pkgname=mx-tools
pkgver=${PKGVER:-25.4}
pkgrel=1
pkgdesc="MX Tools - Dashboard application launcher for various MX tools"
arch=('x86_64' 'i686')
url="https://mxlinux.org"
license=('GPL3')
depends=('qt6-base')
makedepends=('cmake' 'ninja' 'qt6-tools')
source=()
sha256sums=()
build() {
cd "${startdir}"
# Clean any previous build artifacts
rm -rf build
# Configure with CMake
cmake -G Ninja \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DPROJECT_VERSION_OVERRIDE="${pkgver}"
# Build
cmake --build build --parallel
}
package() {
cd "${startdir}"
# Install binary
install -Dm755 build/mx-tools "${pkgdir}/usr/bin/mx-tools"
# Install translations
install -dm755 "${pkgdir}/usr/share/mx-tools/locale"
install -Dm644 build/*.qm "${pkgdir}/usr/share/mx-tools/locale/" 2>/dev/null || true
# Install desktop file
install -Dm644 mx-tools.desktop "${pkgdir}/usr/share/applications/mx-tools.desktop"
# Install icons
install -Dm644 icons/mx-tools.png "${pkgdir}/usr/share/icons/hicolor/96x96/apps/mx-tools.png"
install -Dm644 icons/mx-tools.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/mx-tools.svg"
# Install documentation
install -dm755 "${pkgdir}/usr/share/doc/mx-tools"
if [ -d help ]; then
cp -r help/* "${pkgdir}/usr/share/doc/mx-tools/" 2>/dev/null || true
fi
# Install license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install changelog
install -Dm644 <(gzip -c debian/changelog) "${pkgdir}/usr/share/doc/${pkgname}/changelog.gz"
}