summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83a3e702f0a4009c9c9d81acd4e7d5049002f483 (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
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>

pkgname=ragnar-git
pkgver=0.47.1ba3be8
pkgrel=1
pkgdesc="Mount an existing remote LUKS device with NBD over SSH"
url="https://github.com/gavinhungry/ragnar"
license=('MIT')
arch=('any')
makedepends=('git')
depends=('openssh' 'nbd' 'cryptsetup' 'udisks2')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver () {
  cd "${srcdir}/${pkgname}"
  echo "0.$(git rev-list --count HEAD).$(git describe --always | sed 's|-|.|g')"
}

package() {
  cd "${srcdir}/${pkgname}"
  git submodule init
  git submodule update

  mkdir -p ${pkgdir}/usr/bin

  install -m 755 abash/abash.sh ${pkgdir}/usr/bin/ragnar
  echo >> ${pkgdir}/usr/bin/ragnar
  cat ragnar.sh >> ${pkgdir}/usr/bin/ragnar
}