diff options
author | Chocobo1 | 2018-08-06 10:42:08 +0800 |
---|---|---|
committer | Chocobo1 | 2018-08-06 11:03:07 +0800 |
commit | 27512950316efefd8b749800f15545782695358e (patch) | |
tree | 76395c80f69ab1b4d50a515152159b89bd9f7233 | |
download | aur-27512950316efefd8b749800f15545782695358e.tar.gz |
newpkg: rng-tools-git 6.3.1.r21.g4023c8f-1
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1b615ed850cb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = rng-tools-git + pkgdesc = Random number generator daemon + pkgver = 6.3.1.r21.g4023c8f + pkgrel = 1 + url = https://github.com/nhorman/rng-tools + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + depends = glibc + depends = libgcrypt + provides = rng-tools + conflicts = rng-tools + backup = etc/conf.d/rngd + source = git+https://github.com/nhorman/rng-tools.git + source = rngd.conf::https://git.archlinux.org/svntogit/community.git/plain/trunk/rngd.conf?h=packages/rng-tools + source = rngd.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/rngd.service?h=packages/rng-tools + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = rng-tools-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..85ffc7f8f6c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=rng-tools-git +pkgver=6.3.1.r21.g4023c8f +pkgrel=1 +pkgdesc="Random number generator daemon" +arch=('i686' 'x86_64') +url="https://github.com/nhorman/rng-tools" +license=('GPL3') +depends=('glibc' 'libgcrypt') +makedepends=('git') +provides=('rng-tools') +conflicts=('rng-tools') +backup=('etc/conf.d/rngd') +source=("git+https://github.com/nhorman/rng-tools.git" + "rngd.conf::https://git.archlinux.org/svntogit/community.git/plain/trunk/rngd.conf?h=packages/rng-tools" + "rngd.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/rngd.service?h=packages/rng-tools") +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + + +pkgver() { + cd "rng-tools" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "rng-tools" + + ./autogen.sh + ./configure \ + --prefix="/usr" --sbindir="/usr/bin" \ + --without-nistbeacon + make +} + +check() { + cd "rng-tools" + + make check +} + +package() { + cd "rng-tools" + + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir/rngd.service" "$pkgdir/usr/lib/systemd/system/rngd.service" + install -Dm644 "$srcdir/rngd.conf" "$pkgdir/etc/conf.d/rngd" +} |