summaryrefslogtreecommitdiff
path: root/pcr/video_entropyd/PKGBUILD
blob: fb6dd831ec010510392c253f7051d154f7aec366 (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
# Maintainer (AUR): Florian Schweikert <kelvan@logic.at>
# Maintainer: fauno <fauno@parabola.nu>
pkgname=video_entropyd
pkgver=2.0
pkgrel=2
pkgdesc="Feeds the /dev/random device with entropy-data read from a video device"
arch=('i686' 'x86_64')
url="http://www.vanheusden.com/ved/"
license=('GPL2')
groups=('entropy')
source=(http://www.vanheusden.com/ved/$pkgname-$pkgver.tgz
        $pkgname.service)
sha256sums=('aba6255ddb32cd376c785128a7e850fb51b6c1d7fe3f4ba765abc0c50ec67d7a'
            'b6988df79823a29ab04bfa0fe6d8f2e14f3176398eb220fa1248c6728e8be27f')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -D -m644 license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  install -D -m755 ${pkgname} "${pkgdir}"/usr/bin/${pkgname}
  install -D -m644 ${srcdir}/${pkgname}.service \
    "${pkgdir}"/usr/lib/systemd/system/${pkgname}.service
}