-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPKGBUILD
More file actions
68 lines (59 loc) · 1.82 KB
/
PKGBUILD
File metadata and controls
68 lines (59 loc) · 1.82 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
61
62
63
64
65
66
67
68
pkgname=illogical-updots
pkgver=2.0.0
pkgrel=1
pkgdesc="GTK based updater for end4 dotfiles - TUI and Quickshell widget"
arch=('x86_64')
url="https://github.com/FoxyIsCoding/illogical-updots"
license=('custom')
depends=(
'git'
'adwaita-icon-theme'
'gdk-pixbuf2'
'librsvg'
'quickshell'
)
makedepends=(
'rust'
'cargo'
)
source=(
"git+https://github.com/FoxyIsCoding/illogical-updots.git"
"illogical-updots.png::https://github.com/FoxyIsCoding/illogical-updots/blob/main/.github/assets/logo.png?raw=true"
)
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "${srcdir}/${pkgname}"
}
build() {
cd "${srcdir}/${pkgname}/illogical-updots-rust"
cargo build --release
}
package() {
cd "${srcdir}/${pkgname}"
install -d "${pkgdir}/usr/bin"
install -m755 "illogical-updots-rust/target/release/illogical-updots" "${pkgdir}/usr/bin/illogical-updots"
install -d "${pkgdir}/usr/share/quickshell/plugins/illogical-updots"
cp -r quickshell/* "${pkgdir}/usr/share/quickshell/plugins/illogical-updots/"
install -d "${pkgdir}/usr/share/applications"
cat > "${pkgdir}/usr/share/applications/illogical-updots.desktop" <<'EOF'
[Desktop Entry]
Type=Application
Name=Illogical Updots
Exec=quickshell /usr/share/quickshell/plugins/illogical-updots/Main.qml
Icon=illogical-updots
Terminal=false
Categories=Utility;
StartupNotify=false
EOF
ICON_SOURCE="${srcdir}/illogical-updots.png"
if [[ -f "${ICON_SOURCE}" ]]; then
install -d "${pkgdir}/usr/share/icons/hicolor/256x256/apps"
install -m644 "${ICON_SOURCE}" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/illogical-updots.png"
fi
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
if [[ -f LICENSE ]]; then
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
else
echo "License file missing" > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
}