blob: 2d23dc4bb982dbb35c53712d67f6bc64a6d174fc (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=savedesktop
_app_id=io.github.vikdevelop.SaveDesktop
pkgver=3.5
pkgrel=2
pkgdesc="Save and load KDE Plasma, Xfce and GNOME-based DE configuration"
arch=('any')
url="https://github.com/vikdevelop/SaveDesktop"
license=('GPL-3.0-or-later')
depends=('hicolor-icon-theme' 'libadwaita' 'python-dbus' 'python-gobject')
makedepends=('git')
_commit=f22045cc3da8a11b32f39f7770427d3aab4a160a # tags/3.5^0
source=("git+https://github.com/vikdevelop/SaveDesktop.git#commit=${_commit}"
"$pkgname.sh")
sha256sums=('236d68951d395e65e1e705ce5e45bed4b2e5eff7e8b35c555cb609e99d3b4431'
'69571f87e5eb4754c9b35c62d0311b1bf0e040cf79d5478a050d46efb1a4809a')
prepare() {
cd SaveDesktop
# Use system directories
sed -i 's|{home}/.local/share/savedesktop/translations|/usr/share/savedesktop/translations|g' \
src/localization.py
sed -i 's|{Path.home()}/.local/share/savedesktop|/usr/share/savedesktop|g' "$pkgname"
}
check() {
cd SaveDesktop
appstreamcli validate --no-net "flatpak/${_app_id}.metainfo.xml" || :
desktop-file-validate "flatpak/${_app_id}.desktop"
}
package() {
cd SaveDesktop
install -Dm755 "$pkgname" -t "$pkgdir/usr/share/$pkgname/src/"
cp -R src translations "$pkgdir/usr/share/$pkgname"
install -Dm644 "flatpak/${_app_id}.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 "flatpak/${_app_id}.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
install -Dm644 "flatpak/${_app_id}.gschema.xml" -t "$pkgdir/usr/share/glib-2.0/schemas/"
install -Dm644 "flatpak/icons/${_app_id}.svg" -t \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/"
install -Dm644 "flatpak/icons/${_app_id}-symbolic.svg" -t \
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/"
install -Dm644 flatpak/symbolic-icons/*.{svg,png} -t \
"$pkgdir/usr/share/icons/hicolor/symbolic/actions/"
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
|