[arch-commits] Commit in irqbalance/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 16 11:27:19 UTC 2020


    Date: Saturday, May 16, 2020 @ 11:27:19
  Author: felixonmars
Revision: 384304

archrelease: copy trunk to staging-x86_64

Added:
  irqbalance/repos/staging-x86_64/
  irqbalance/repos/staging-x86_64/PKGBUILD
    (from rev 384303, irqbalance/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: irqbalance/repos/staging-x86_64/PKGBUILD (from rev 384303, irqbalance/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 11:27:19 UTC (rev 384304)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Dan McGee <dan at archlinux.org>
+# Contributor: Martin Striz <ms at poruba.net>
+
+pkgname=irqbalance
+pkgver=1.6.0
+pkgrel=2
+pkgdesc="IRQ balancing daemon for SMP systems"
+arch=('x86_64')
+url="https://github.com/irqbalance/irqbalance"
+license=('GPL2')
+backup=('etc/irqbalance.env')
+depends=('glib2' 'numactl' 'libcap-ng' 'systemd-libs')
+makedepends=('systemd')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v$pkgver.tar.gz")
+sha512sums=('ce89dc41eb3aab5950a56b4b1c817aae5e87eaa84bc69bf88618caf53386513e488bb0b4724a600ae175c96be509367cfc418c7f85531007f80e02f7de549b16')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # fix location of configuration and binary in service
+  sed -e 's|/path/to/|/etc/|g' \
+      -e 's|/usr/sbin|/usr/bin|g' \
+      -i "misc/${pkgname}.service"
+  autoreconf -vfi
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr --sbindir=/usr/bin --with-systemd
+  make
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make install DESTDIR="$pkgdir"
+  install -vDm 644 misc/irqbalance.service \
+    -t "${pkgdir}/usr/lib/systemd/system/"
+  install -vDm 644 misc/irqbalance.env -t "${pkgdir}/etc/"
+  install -vDm 644 {AUTHORS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list