blob: 0a61249139e7a0c63e6dc5110ae4bcd7cbe013a5 (
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
30
31
32
33
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
_pkgname=btrfs-clone
pkgname=${_pkgname}-git
pkgver=r67.1354656
pkgrel=1
pkgdesc='Clone an existing BTRFS file system to a new one, cloning each subvolume in order.'
provides=(${_pkgname})
conflicts=(${_pkgname})
arch=('any')
url="https://github.com/mwilck/${_pkgname}"
license=('GPL2')
depends=()
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')
_srcdir="${_pkgname}"
pkgver() {
cd "${_srcdir}"
( set -o pipefail
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
package() {
cd "${_srcdir}"
depends=('python' 'btrfs-progs')
install -Dm755 "${_pkgname}" -t "${pkgdir}/usr/bin"
install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}
|