blob: 3c1328fd151e87f7d716e5a5e4d921fa2f0301f0 (
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
|
# Maintainer: Moviuro <moviuro+archlinux@gmail.com>
pkgname=butter
pkgver=11
pkgrel=1
pkgdesc="butter is a btrfs snapshot manager"
arch=('any')
license=('custom:WTFPL')
url="https://github.com/moviuro/butter"
depends=('bash' 'btrfs-progs')
optdepends=('systemd: human-friendly escaped names')
backup=('etc/butterrc')
source=("https://github.com/moviuro/butter/archive/${pkgver}.tar.gz")
sha256sums=('dfb010c11e6a2e15a976728028eead25027c8c1360ea7c35c3f82e3dd3ccb382')
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make PREFIX=${pkgdir}/usr ETCDIR=${pkgdir}/etc \
MANDIR=${pkgdir}/usr/share/man \
LICENSEDIR=${pkgdir}/usr/share/licenses install
## If systemd is available, install the service as well
if pacman -Qi systemd >/dev/null 2>&1; then
install -Dm 0444 butter@.service \
${pkgdir}/usr/lib/systemd/system/butter@.service
fi
}
|