Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverOnVenus committed Sep 6, 2021
1 parent 28cff0c commit 309b4a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zen-muqss/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ prepare() {
scripts/config --enable CONFIG_ZRAM_DEF_COMP_ZSTD
scripts/config --set-str CONFIG_ZRAM_DEF_COMP zstd

make olddefconfig
make -j$(nproc) olddefconfig

make -s kernelrelease > version
make -j$(nproc) -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)"
}

build() {
cd $_srcname
make all
make htmldocs
make -j$(nproc) all
make -j$(nproc) htmldocs
}

_package() {
Expand All @@ -104,13 +104,13 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
install -Dm644 "$(make -j$(nproc) -s image_name)" "$modulesdir/vmlinuz"

# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"

echo "Installing modules..."
make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install
make -j$(nproc) INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install

# remove build and source links
rm "$modulesdir"/{source,build}
Expand Down

0 comments on commit 309b4a1

Please sign in to comment.