summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b96d32288d415ea4f85a8f69df46c383ecd03698 (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
# Maintainer: Vianney le Clément de Saint-Marcq <vleclement AT gmail·com>
_pkgname=arch-luks-suspend
pkgname=$_pkgname-git
pkgver=20140628.g15420df
pkgrel=2
pkgdesc="Lock encrypted root volume on suspend"
arch=('any')
url="https://github.com/vianney/arch-luks-suspend"
license=('GPL3')
depends=('systemd' 'cryptsetup' 'mkinitcpio')
makedepends=('git')
backup=('etc/systemd/system/systemd-suspend.service')
install=install
source=("git+https://github.com/vianney/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  _date=$(git show -s --format='%ci' | cut -d' ' -f1 | sed 's/-//g')
  _hash=$(git show -s --format='%h')
  echo "$_date.g$_hash"
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: