Browse Source

[trunk] -> [testing] 'rtkit-0.13-1' add

master
Nathan Owens 2 years ago
parent
commit
b31585d3bd
  1. 47
      repos/testing-x86_64/PKGBUILD
  2. 36
      trunk/PKGBUILD

47
repos/testing-x86_64/PKGBUILD

@ -0,0 +1,47 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
pkgname=rtkit
pkgver=0.13
pkgrel=1
pkgdesc="Realtime Policy and Watchdog Daemon"
arch=(x86_64)
url="https://github.com/heftig/rtkit"
license=(GPL3 'custom:BSD')
depends=(dbus polkit elogind)
makedepends=(git meson vim)
_commit=b9169402fe5e82d20efb754509eb0b191f214599 # tags/v0.13^0
source=("git+https://github.com/heftig/rtkit?signed#commit=$_commit")
sha256sums=('SKIP')
validpgpkeys=('8218F88849AAC522E94CF470A5E9288C4FA415FA') # Jan Alexander Steffens (heftig)
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd $pkgname
}
build() {
arch-meson $pkgname build -D installed_tests=false
}
check() {
meson test -C build --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C build
rm -r "$pkgdir/usr/lib/systemd"
rm -r "$pkgdir/usr/share/dbus-1/system-services"
rm -r "$pkgdir/usr/share/dbus-1/system.d"
echo 'u rtkit 133 "RealtimeKit" /proc' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE
sed -ne '4,25p' $pkgname/rtkit.c |
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

36
trunk/PKGBUILD

@ -2,17 +2,18 @@
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
pkgname=rtkit
pkgver=0.12
pkgver=0.13
pkgrel=1
pkgdesc="Realtime Policy and Watchdog Daemon"
arch=(x86_64)
url="https://github.com/heftig/rtkit"
license=(GPL3 'custom:BSD')
depends=(dbus polkit elogind)
makedepends=(git)
_commit=4c7e5ca63b1278b41c31b63a4ca5cce331d9db2e # tags/v0.12^0
source=("git+https://github.com/heftig/rtkit#commit=$_commit")
makedepends=(git meson vim)
_commit=b9169402fe5e82d20efb754509eb0b191f214599 # tags/v0.13^0
source=("git+https://github.com/heftig/rtkit?signed#commit=$_commit")
sha256sums=('SKIP')
validpgpkeys=('8218F88849AAC522E94CF470A5E9288C4FA415FA') # Jan Alexander Steffens (heftig)
pkgver() {
cd $pkgname
@ -21,29 +22,26 @@ pkgver() {
prepare() {
cd $pkgname
./autogen.sh
}
build() {
cd $pkgname
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-systemdsystemunitdir=/usr/lib/systemd/system
make
arch-meson $pkgname build -D installed_tests=false
}
check() {
meson test -C build --print-errorlogs
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
rm -r "$pkgdir/usr/lib/installed-tests"
DESTDIR="$pkgdir" meson install -C build
rm -r "$pkgdir/usr/lib/systemd"
rm -r "$pkgdir/usr/share/dbus-1/system-services"
rm -r "$pkgdir/usr/share/dbus-1/system.d"
echo 'u rtkit 133 "RealtimeKit" /proc' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
sed -ne '4,25p' rtkit.c >"$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE
sed -ne '4,25p' $pkgname/rtkit.c |
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

Loading…
Cancel
Save