-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
41 lines (36 loc) · 2.09 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
pkgname='refresh-mirrors'
pkgver=0.0.25
pkgrel=1
pkgdesc='Just some convenient shortcuts for running the `rate-mirrors` tool (https://github.com/westandskif/rate-mirrors) for RebornOS. This is *NOT* a fork, but just a wrapper for shortcuts that call the tool.'
arch=('any')
url='https://github.com/RebornOS-Developers/refresh-mirrors'
license=('MPL2')
groups=('rebornos')
depends=('rate-mirrors' 'polkit')
provides=("${pkgname}")
conflicts=("${pkgname}")
replaces=('refresh-mirrors-rebornos')
backup=()
options=()
install=
source=('refresh-mirrors.sh' 'org.rebornos.refresh_mirrors.policy' 'refresh-mirrors.service' 'refresh-mirrors.desktop' 'refresh-mirrors.svg')
noextract=()
sha256sums=('644ef8fafc53d1a107b954d91c29869a1411de4d6127a04c9b4f3c9cfff0c55a'
'46cef1409ead750734f08c9caf8279ef5d1d41b36efabb65f334a0c339e9a1fa'
'03f2b3a6275c63a2ebfdba0b1d4281fe7dc6bed18525fd2b86b48058c8ff41a0'
'71677a440f1d8ff6b03d576969b3f45401644b7bdc07d039202f1603b95f952a'
'809cf24278053253e17ef20bd1d03162c1ee93340181e2d45e17d7fd65ee966c')
package() {
(
# Copy the script to the bin directory
install -D -m 755 "${srcdir}/refresh-mirrors.sh" "${pkgdir}/usr/bin/refresh-mirrors.sh"
# Create a symlink for refresh-mirrors to call refresh-mirrors.sh
ln -s "/usr/bin/refresh-mirrors.sh" "${pkgdir}/usr/bin/refresh-mirrors"
# Copy the script as refresh-mirrors-rebornos to call refresh-mirrors.sh to maintain backward compatibility
install -D -m 755 "${srcdir}/refresh-mirrors.sh" "${pkgdir}/usr/bin/refresh-mirrors-rebornos.sh"
install -D -m 755 "${srcdir}/org.rebornos.refresh_mirrors.policy" "${pkgdir}/usr/share/polkit-1/actions/org.rebornos.refresh_mirrors.policy"
install -D -m 755 "${srcdir}/refresh-mirrors.service" "${pkgdir}/usr/lib/systemd/system/refresh-mirrors.service"
install -D -m 755 "${srcdir}/refresh-mirrors.desktop" "${pkgdir}/usr/share/applications/refresh-mirrors.desktop"
install -D -m 755 "${srcdir}/refresh-mirrors.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/refresh-mirrors.svg"
)
}