summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3368a46549eb5b5b543ad52a7336446878b440b (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
# Maintainer: Kevin MacMartin <prurigro@gmail.com>

pkgname=cryptobox
pkgver=20201118.r13.d5610d4
pkgrel=1
pkgdesc='A script that makes it easy to create, mount and unmount encrypted images in Linux using LUKS'
url='https://github.com/prurigro/cryptobox'
license=('MIT')
depends=('coreutils' 'cryptsetup' 'util-linux')
makedepends=('git')
arch=('any')
source=("git://github.com/prurigro/${pkgname}.git#branch=master")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $pkgname
  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}