updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / boot-digest / PKGBUILD
blobdbd9992ab218abb1d9963414639a6ed2f9db6a64
1 # Contributor: Thomas Haider <t.haider@vcnc.org>
2 pkgname=boot-digest
3 pkgver=0.4
4 pkgrel=3
5 pkgdesc="Allows validating integrity of bootpartition upon startup/resume"
6 arch=('i686')
7 url="http://alon.barlev.googlepages.com/utilities"
8 license=('custom:BSD')
9 depends=('perl-digest-sha' 'hibernate-script')
10 makedepends=('sed')
11 install=$pkgname.install
12 source=(http://alon.barlev.googlepages.com/$pkgname-$pkgver.tar.bz2 \
13         boot-digest.rcd \
14         bootdigest.scriptlet \
15         boot-digest.install)
16 md5sums=('c59ea10fec9e26ea607ff17ce5982f36'
17          '247d28f29954c0b80d638c16a2c3a8a1'
18          '81f3f0e2eb40552db5477e59a6d6b70c'
19          'b3fed9decdb14d5cea5a660ffa6e6ac4')
21 build()
23         cd $startdir/src/$pkgname-$pkgver
24         ./configure --prefix=/usr --digest=SHA-256
25         
26         make || return 1
27         make DESTDIR=$startdir/pkg install
29         install -D -m755 $startdir/src/boot-digest.rcd $startdir/pkg/etc/rc.d/boot-digest
30         install -D -m644 $startdir/src/bootdigest.scriptlet $startdir/pkg/usr/share/hibernate/scriptlets.d/bootdigest
31         install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE