fixes-package/PKGBUILD

40 lines
1.3 KiB
Bash
Raw Normal View History

2022-09-15 23:14:20 +00:00
# Maintainer: TROM <contact@tromsite.com>
pkgname=tromjaro-fixes
2022-09-17 14:39:44 +00:00
pkgver=1.1.1
2022-09-15 23:14:20 +00:00
pkgrel=1
pkgdesc="Various fixes for TROMjaro OS"
arch=(any)
url=""
license=(unknown)
depends=('xfce4-appfinder'
'xdotool'
'rsync')
2022-09-15 23:14:20 +00:00
provides=('tromjaro-fixes')
backup=()
options=(!strip)
2022-09-15 23:14:20 +00:00
install='fixes-package.install'
2022-09-15 23:14:20 +00:00
prepare() {
2022-09-15 23:14:20 +00:00
cp -R ../bin ../flatpak-overrides ../alpm-hooks ../systemd .
2022-09-15 23:14:20 +00:00
}
package() {
# copy scripts
install -d ${pkgdir}/usr/bin
install -Dm755 ${srcdir}/bin/standalone/* ${pkgdir}/usr/bin
install -Dm755 ${srcdir}/bin/periodic/* ${pkgdir}/usr/bin
2022-09-15 23:14:20 +00:00
# copy systemd units
2022-09-18 12:30:43 +00:00
install -d ${pkgdir}/usr/lib/systemd/user
install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/user
install -Dm644 ${srcdir}/systemd/timers/* ${pkgdir}/usr/lib/systemd/user
2022-09-15 23:14:20 +00:00
2022-09-15 23:14:20 +00:00
# copy alpm hooks
install -d ${pkgdir}/usr/share/libalpm/hooks
install -Dm644 ${srcdir}/alpm-hooks/* ${pkgdir}/usr/share/libalpm/hooks
# copy flatpak overrides
install -d ${pkgdir}/var/lib/flatpak/overrides
install -Dm644 ${srcdir}/flatpak-overrides/* ${pkgdir}/var/lib/flatpak/overrides
}