PKGBUILDs/btrfsmaintenance/PKGBUILD

30 lines
1.1 KiB
Bash

# Maintainer: Caleb McKay <caleb@candj.us>
# Contributor: Romain Gautier <romain.gautier@nimamoh.net>
# Contributor: Jameson Pugh <imntreal@gmail.com>
# Contributor: Arne Brücher <archlinux[at]arne-bruecher[dot]de
pkgname=btrfsmaintenance
pkgver=0.5.1
pkgrel=1
pkgdesc='btrfs maintenance scripts'
arch=('any')
url='https://github.com/kdave/btrfsmaintenance'
license=('GPL2')
depends=('bash')
conflicts=("${pkgname}-git")
backup=(etc/default/btrfsmaintenance)
source=("https://github.com/kdave/btrfsmaintenance/archive/v${pkgver}.tar.gz")
sha256sums=('305998224fd8fa6bbca474d6fe8e23be9c2ae4d6f47e398a76b117e57a9d9056')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -E -i 's|/etc/sysconfig/|/etc/default/|' btrfsmaintenance-refresh.path
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm644 sysconfig.btrfsmaintenance "$pkgdir/etc/default/btrfsmaintenance"
install -dm755 "$pkgdir/"{usr/lib/systemd/system,usr/share/btrfsmaintenance}
install -Dm755 btrfs-*.sh btrfsmaintenance-{functions,refresh-cron.sh} README.md "$pkgdir/usr/share/btrfsmaintenanc>
install -Dm644 *.service *.timer *.path "$pkgdir/usr/lib/systemd/system"
}