summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38b718f5bc2eae4e6c52f66712e97d4fbbab8700 (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=skul-git
pkgver=0.46.d38e649
pkgrel=2
pkgdesc="Create, format and mount loopback-based, encrypted LUKS containers"
arch=('any')
url="https://github.com/gavinhungry/skul"
license=('MIT')
depends=('cryptsetup' 'e2fsprogs' 'udisks2')
makedepends=('git')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}"/${pkgname}
  echo 0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

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

  mkdir -p "${pkgdir}"/usr/bin

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