Skip to content

Commit

Permalink
Add scx-scheds
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Gorski <[email protected]>
  • Loading branch information
sirlucjan committed Jan 2, 2024
1 parent ded3b15 commit b96f097
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scx-scheds/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by makepkg 6.0.2
# Tue Jan 2 08:00:04 UTC 2024
pkgbase = scx-scheds
pkgdesc = Sched_ext schedulers
pkgver = 0.1.4
pkgrel = 1
url = https://github.com/sched-ext/scx
arch = x86_64
license = GPL-2.0-only
makedepends = python
makedepends = meson
makedepends = clang
makedepends = llvm-libs
makedepends = cargo
makedepends = rust
depends = libbpf
depends = bpf
depends = libelf
depends = zlib
options = !lto
source = https://github.com/sched-ext/scx/archive/refs/tags/v0.1.4.tar.gz
sha512sums = 89ee3774a89942dbd04eda2e86ddade33d52f43359bf96f9a47f1ef0a6c98d52caed857396f5d51d7afbce106fd8c13b04c839dc18812a5c0e16275a89bd1fd3

pkgname = scx-scheds
41 changes: 41 additions & 0 deletions scx-scheds/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Maintainer: Tejun Heo <[email protected]>
# Maintainer: Peter Jung ptr1337 <[email protected]>
# Maintainer: Piotr Górski <[email protected]>

pkgname=scx-scheds
pkgver=0.1.4
pkgrel=1
pkgdesc='Sched_ext schedulers'
url='https://github.com/sched-ext/scx'
arch=('x86_64')
license=('GPL-2.0-only')
depends=('libbpf' 'bpf' 'libelf' 'zlib')
makedepends=('python' 'meson' 'clang' 'llvm-libs' 'cargo' 'rust')
options=(!lto)
source=(https://github.com/sched-ext/scx/archive/refs/tags/v${pkgver}.tar.gz)
sha512sums=('89ee3774a89942dbd04eda2e86ddade33d52f43359bf96f9a47f1ef0a6c98d52caed857396f5d51d7afbce106fd8c13b04c839dc18812a5c0e16275a89bd1fd3')

prepare() {
cd scx-${pkgver}

local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}

build() {
cd scx-${pkgver}
arch-meson . build
meson compile -C build
}

package() {
cd scx-${pkgver}
meson install -C build --destdir "${pkgdir}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit b96f097

Please sign in to comment.