forked from BluewhaleRobot/systemback
-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKGBUILD
121 lines (97 loc) · 4.25 KB
/
PKGBUILD
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
115
116
117
118
119
120
121
# Maintainer: shadichy <[email protected]>
pkgbase=systemback
sb=$pkgbase
pkgname=("lib${sb}" "${sb}-cli" "${sb}")
pkgver=1.8.9
pkgrel=4
pkgdesc='Simple system backup and restore application with extra features'
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url='https://github.com/shadichy/systemback-archlinux'
license=('GPL')
depends=('util-linux' 'util-linux-libs' 'parted' 'qt5-base>=5.5.0' 'procps-ng' 'gnu-free-fonts' 'dosfstools' 'squashfs-tools' 'libxcrypt-compat')
optdepends=('btrfs-progs' 'jfsutils' 'reiserfsprogs' 'xfsprogs' 'update-grub')
makedepends=('ncurses' 'qt5-tools' 'make' 'procps-ng' 'libisoburn' 'gcc')
# source=()
# md5sums=('SKIP')
build() {
cd "../${sb}"
qmake-qt5 $([ "$LLVM" ] && [ "$LLVM" != 0 ] && echo "-spec linux-clang")
make -j$(nproc --all)
lrelease-qt5 systemback.pro
}
package_libsystemback() {
pkgdesc='Libary for Systemback'
mkdir -p ${pkgdir}/usr/lib/${sb}
mkdir -p ${pkgdir}/usr/include/lib${sb}
mkdir -p ${pkgdir}/usr/share/${sb}/scripts
mkdir -p ${pkgdir}/usr/share/licenses/${sb}
cd "../${sb}"
install -dm755 ${pkgdir}/usr/lib/${sb}
install -dm755 ${pkgdir}/usr/include/lib${sb}
install -dm755 ${pkgdir}/usr/share/${sb}/scripts
install -dm755 ${pkgdir}/usr/share/licenses/${sb}
install -m755 lib${sb}/lib${sb}.so* ${pkgdir}/usr/lib/${sb}
install -m755 lib${sb}/*.hpp ${pkgdir}/usr/include/lib${sb}
install -m755 lib${sb}/scripts/* ${pkgdir}/usr/share/${sb}/scripts
install -m755 LICENSE ${pkgdir}/usr/share/licenses/${sb}
}
package_systemback-cli() {
depends+=('ncurses' "lib${sb}")
mkdir -p ${pkgdir}/usr/bin
install -dm755 ${pkgdir}/usr/bin
cd "../${sb}"
install -m755 ${sb}-cli/${sb}-cli ${pkgdir}/usr/bin
}
package_systemback() {
depends+=('libx11' 'zenity' "lib${sb}" 'grub' 'mtools' 'arch-install-scripts' 'mkinitcpio-live-boot' 'xz' 'zstd' 'xterm')
optdepends+=('kdialog' 'amd-ucode' 'intel-ucode' 'systemback-efiboot')
mkdir -p ${pkgdir}/etc/${sb}
mkdir -p ${pkgdir}/etc/xdg/autostart
mkdir -p ${pkgdir}/usr/bin
mkdir -p ${pkgdir}/usr/lib/${sb}
mkdir -p ${pkgdir}/usr/share/${sb}/lang
mkdir -p ${pkgdir}/usr/share/polkit-1/actions/
mkdir -p ${pkgdir}/usr/lib/initcpio/hooks
mkdir -p ${pkgdir}/usr/lib/initcpio/install
appdir=usr/share/applications
mkdir -p ${pkgdir}/$appdir
icondir=usr/share/icons/hicolor
mkdir -p ${pkgdir}/$icondir/128x128/apps
mkdir -p ${pkgdir}/$icondir/256x256/apps
mkdir -p ${pkgdir}/$icondir/48x48/apps
mkdir -p ${pkgdir}/$icondir/64x64/apps
cd "../${sb}"
install -dm664 ${pkgdir}/etc/${sb}
install -dm644 ${pkgdir}/usr/share/${sb}/lang
install -dm755 ${pkgdir}/usr/share/polkit-1/actions/
install -dm755 ${pkgdir}/usr/lib/initcpio/hooks
install -dm755 ${pkgdir}/usr/lib/initcpio/install
install -dm755 ${pkgdir}/$icondir/128x128/apps
install -dm755 ${pkgdir}/$icondir/256x256/apps
install -dm755 ${pkgdir}/$icondir/48x48/apps
install -dm755 ${pkgdir}/$icondir/64x64/apps
install -dm755 ${pkgdir}/etc/xdg/autostart
install -dm755 ${pkgdir}/$appdir
install -dm755 ${pkgdir}/usr/lib/${sb}
install -dm755 ${pkgdir}/usr/bin
install -m660 ${sb}.conf ${pkgdir}/etc/${sb}
install -m644 lang/*.qm ${pkgdir}/usr/share/${sb}/lang
install -m644 org.${sb}.sbsustart.policy ${pkgdir}/usr/share/polkit-1/actions/
install -m755 pacman/hooks/* ${pkgdir}/usr/lib/initcpio/hooks
install -m755 pacman/install/* ${pkgdir}/usr/lib/initcpio/install
install -m644 splash.png ${pkgdir}/usr/share/${sb}
install -m644 icons/128x128/${sb}.png ${pkgdir}/$icondir/128x128/apps
install -m644 icons/256x256/${sb}.png ${pkgdir}/$icondir/256x256/apps
install -m644 icons/48x48/${sb}.png ${pkgdir}/$icondir/48x48/apps
install -m644 icons/64x64/${sb}.png ${pkgdir}/$icondir/64x64/apps
install -m755 sbschedule.desktop ${pkgdir}/etc/xdg/autostart
install -m755 org.${sb}.${sb}.desktop ${pkgdir}/$appdir
ln -s org.${sb}.${sb}.desktop ${pkgdir}/$appdir/${sb}.desktop
install -m755 sbscheduler/sbscheduler \
sbsustart/sbsustart \
sbsysupgrade/sbsysupgrade \
${pkgdir}/usr/lib/${sb}
install -m755 ../sbsustart \
${sb}/${sb} \
${pkgdir}/usr/bin
}