Trigger rebuild for Python 3.10 and fix PKGBUILD
Thanks to @yochananmarqos for suggesting PKGBUILD changes
This commit is contained in:
parent
080c776289
commit
bf2e2cd789
2 changed files with 12 additions and 7 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = tuned
|
pkgbase = tuned
|
||||||
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
|
pkgdesc = Daemon that performs monitoring and adaptive configuration of devices in the system
|
||||||
pkgver = 2.16.0
|
pkgver = 2.16.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/redhat-performance/tuned
|
url = https://github.com/redhat-performance/tuned
|
||||||
install = tuned.install
|
install = tuned.install
|
||||||
arch = any
|
arch = any
|
||||||
|
|
17
PKGBUILD
17
PKGBUILD
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
pkgname=tuned
|
pkgname=tuned
|
||||||
pkgver=2.16.0
|
pkgver=2.16.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/redhat-performance/${pkgname}"
|
url="https://github.com/redhat-performance/${pkgname}"
|
||||||
|
@ -18,14 +18,19 @@ install="${pkgname}.install"
|
||||||
source=("https://github.com/redhat-performance/${pkgname}/archive/v${pkgver}.tar.gz")
|
source=("https://github.com/redhat-performance/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('7f0b858c35fb9695703f04177af074555de59a7a3e94ec0b7e28357584d4502d')
|
sha256sums=('7f0b858c35fb9695703f04177af074555de59a7a3e94ec0b7e28357584d4502d')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "${pkgname}-${pkgver}"
|
||||||
|
mv libexec lib
|
||||||
|
|
||||||
|
sed -i 's/libexec/lib/g' Makefile
|
||||||
|
sed -i 's/sbin/bin/g' Makefile
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${pkgname}-${pkgver}"
|
cd "${pkgname}-${pkgver}"
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
rm -r "${pkgdir}"/{run,var}
|
||||||
|
|
||||||
mv "${pkgdir}"/usr/sbin/* "${pkgdir}"/usr/bin/
|
install -Dm644 tuned.service "${pkgdir}/usr/lib/systemd/system/"
|
||||||
mv "${pkgdir}"/usr/libexec/tuned/* "${pkgdir}"/usr/lib/tuned/
|
|
||||||
rm -r "${pkgdir}"/run "${pkgdir}"/usr/sbin "${pkgdir}"/usr/libexec
|
|
||||||
|
|
||||||
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/tuned.service" "${pkgdir}/usr/lib/systemd/system/tuned.service"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue