blob: 988aace9db56b1fda8191921acb701e472298101 (
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
28
29
|
# Maintainer: Mike Yuan <me@yhndnzj.com>
pkgname=btrfs-snapshot
pkgver=1.1.1
pkgrel=2
pkgdesc="Tool for creating btrfs snapshots"
arch=('any')
url="https://github.com/YHNdnzj/btrfs-snapshot"
license=('MIT')
depends=('bash' 'btrfs-progs')
source=("$url/archive/$pkgver.tar.gz")
sha256sums=('b9361f4c8bdcfa60936ddd09f7b36cb47bdd7d796fa90f8eaf798e4b7e69a3b9')
package() {
cd "$pkgname-$pkgver"
sed -e 's|\(^_f_parseopts\)=.*|\1=/usr/lib/btrfs-snapshot/parseopts|' \
-e "s|VERSION|$pkgver|g" \
-i btrfs-snapshot
install -dm755 "$pkgdir"/usr/{bin,lib/{btrfs-snapshot,systemd/system}}
install -Dm755 btrfs-snapshot "$pkgdir"/usr/bin/btrfs-snapshot
install -Dm644 parseopts "$pkgdir"/usr/lib/btrfs-snapshot/parseopts
install -Dt "$pkgdir"/usr/lib/systemd/system -m644 systemd/btrfs-snapshot@.{service,timer}
}
# vim: set ts=4 sw=4 et:
|