blob: 2a8d7e7b2e89296732ab4f45b08a9087ac1340d0 (
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
|
# This file is part of BlackArch Linux ( http://blackarch.org ).
# See COPYING for license details.
pkgname="btrbck"
pkgver="2.0"
pkgrel=1
pkgdesc="Backup tool leveraging BTRFS for incremental backups."
arch=("any")
url="https://github.com/ruediste/btrbck"
depends=("java-environment")
license=("GPL3")
_jar_name="${pkgname}-cli-${pkgver}.jar"
noextract=("${_jar_name}")
source=("https://github.com/ruediste/btrbck/releases/download/2.0/${pkgname}-cli-${pkgver}.jar")
sha1sums=('ef0af5722e5868f150106ffea550bf91485bb52b')
package() {
cd "$srcdir"
mkdir -p "$pkgdir/usr/bin"
install -Dm644 $_jar_name "$pkgdir/usr/share/$pkgname/$_jar_name"
cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
exec \$JAVA_HOME/bin/java -jar /usr/share/$pkgname/$_jar_name "\$@"
EOF
chmod +x "$pkgdir/usr/bin/$pkgname"
}
|