summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 12 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cb70e19b52a..74b2aa73022 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,33 @@
# Maintainer: David Runge <dave@sleepmap.de>
pkgname=rts-git
pkgver=0.2.0.r0.g326a178
-_basename=rts
-pkgrel=2
-pkgdesc="Collection of scripts and systemd services to be used exclusively on
-linux-rt. Enables setting CPU scheduling policies and priorities (amongst
-others) (during boot) using tuna."
+_pkg=rts
+pkgrel=3
+pkgdesc="A collection of systemd services and scripts that allow to set pre-defined real-time related scheduling settings, using tuna."
arch=('any')
url="https://sleepmap.de/software/rts"
license=('GPL3')
-groups=()
depends=('linux-rt' 'tuna')
makedepends=('git')
provides=('rts')
conflicts=('rts')
-replaces=()
backup=('etc/rts/rts')
-options=()
-install=
-source=("${_basename}::git://sleepmap.de/software/rts.git")
-noextract=()
+source=("git+https://git.sleepmap.de/software/rts.git")
sha512sums=('SKIP')
pkgver() {
- cd "$srcdir/$_basename"
+ cd "${srcdir}/${_pkg}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
- cd "$srcdir/$_basename"
- install -Dm 755 bin/rts ${pkgdir}/usr/bin/rts
- install -Dm 644 README.rst ${pkgdir}/usr/share/doc/${_basename}/README.rst
- install -Dm 644 NEWS ${pkgdir}/usr/share/doc/${_basename}/NEWS
- install -d ${pkgdir}/usr/lib/systemd/system/
- install -Dm 644 system/* ${pkgdir}/usr/lib/systemd/system/
- install -d ${pkgdir}/etc/${_basename}/examples/
- install -Dm 644 config/examples/* ${pkgdir}/etc/${_basename}/examples/
- install -Dm 644 config/${_basename} ${pkgdir}/etc/${_basename}/${_basename}
+ cd "${srcdir}/${_pkg}"
+ install -Dm 0755 bin/rts "${pkgdir}/usr/bin/rts"
+ install -Dm 0644 README.rst "${pkgdir}/usr/share/doc/${_pkg}/README.rst"
+ install -Dm 0644 NEWS "${pkgdir}/usr/share/doc/${_pkg}/NEWS"
+ install -t "${pkgdir}/usr/lib/systemd/system/" -Dm 0644 system/*
+ install -t "${pkgdir}/etc/${_pkg}/examples/" -Dm 0644 config/examples/*
+ install -Dm 0644 "config/${_pkg}" "${pkgdir}/etc/${_pkg}/${_pkg}"
}
# vim:set ts=2 sw=2 et: