diff options
author | Mike Yuan | 2019-10-05 13:32:07 +0800 |
---|---|---|
committer | Mike Yuan | 2019-10-05 13:32:07 +0800 |
commit | 42629e90926571096d6981f995415203ce1c6796 (patch) | |
tree | ce5ae237c003505fe02d3cb2b231334336c7dc7d | |
download | aur-42629e90926571096d6981f995415203ce1c6796.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f62cb8d4f49a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = btrfs-snapshot + pkgdesc = Tool for creating btrfs snapshots + pkgver = 1.1.1 + pkgrel = 1 + url = https://github.com/YHNdnzj/btrfs-snapshot + arch = any + license = MIT + depends = bash + depends = btrfs-progs + source = https://github.com/YHNdnzj/btrfs-snapshot/archive/1.1.1.tar.gz + md5sums = SKIP + +pkgname = btrfs-snapshot + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5bbd192d7cf8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Mike Yuan <me@yhndnzj.com> + +pkgname=btrfs-snapshot +pkgver=1.1.1 +pkgrel=1 +pkgdesc="Tool for creating btrfs snapshots" +arch=('any') +url="https://github.com/YHNdnzj/btrfs-snapshot" +license=('MIT') +depends=('bash' 'btrfs-progs') +source=("https://github.com/YHNdnzj/btrfs-snapshot/archive/${pkgver}.tar.gz") +md5sums=('SKIP') + +package() { + cd "${_srcname}" + + 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: |