summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84e2cedd007bb7c51d4a0e188709cd6567fc99f0 (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
31
32
33
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>

pkgname=bit-babbler
pkgver=0.8
pkgrel=3
pkgdesc='Read entropy from BitBabbler hardware RNG devices'
arch=('i686' 'x86_64')
url='http://www.bitbabbler.org'
license=('GPL2')
depends=('libusb>=1.0')
optdepends=('munin: monitoring support')
source=("${url}/downloads/${pkgname}_${pkgver}.tar.gz"
        "${url}/downloads/${pkgname}_${pkgver}.tar.gz.asc")
install="${pkgname}.install"
sha256sums=('ef360a921b54979cfe4bd842b48e411eb0340dc323b7b2d99078ef28e7de0c09'
            'SKIP')
validpgpkeys=('8EAF735424339DDDFE835628125831AE66E70556') # BitBabbler Support <support@bitbabbler.org>

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

  ./configure --prefix=/usr
  make
}

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

  make install DESTDIR="${pkgdir}"
  mv "${pkgdir}"/lib "${pkgdir}"/usr/lib
  install -Dm644 debian/bit-babbler-sysctl.conf "${pkgdir}"/etc/sysctl.d/bit-babbler-sysctl.conf
  install -Dm644 debian/bit-babbler.udev "${pkgdir}"/usr/lib/udev/rules.d/60-bit-babbler.rules
}