Created
February 18, 2024 00:30
-
-
Save ahmadraniri/6345f0b9013031d5f1a603f96fbd2a26 to your computer and use it in GitHub Desktop.
APKBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Dekedro <dekedro@tankers.xyz> | |
pkgname=dwl | |
pkgver=0.5 | |
pkgrel=0 | |
pkgdesc="dwm for wayland" | |
url="https://codeberg.org/dwl/dwl" | |
arch="all" | |
license="GPL-3.0-or-later" | |
makedepends="wlroots-dev wayland-protocols" | |
options="!check" # no tests | |
subpackages="$pkgname-doc" | |
source="https://codeberg.org/dwl/dwl/releases/download/v$pkgver/dwl-v$pkgver.tar.gz | |
vanity_gaps.patch.txt | |
ipc.patch.txt | |
both.patch.txt | |
" | |
builddir="$srcdir/$pkgname-v$pkgver" | |
prepare() { | |
cd "$builddir" | |
echo -e "Choose patch to be applied : \n\ | |
1. Without patch.\n\ | |
2. Vanity Gaps.\n\ | |
3. IPC patch.\n\ | |
4. Both Vanity gaps & IPC Patch." | |
read choose_patch | |
case $choose_patch in | |
1) | |
exec echo "No patch applied.";; | |
2) | |
exec patch < ../vanity_gaps.patch.txt;; | |
3) | |
exec patch -p1 < ../ipc.patch.txt;; | |
4) | |
exec patch -p1 < ../both.patch.txt;; | |
esac | |
nvim config.def.h | |
} | |
build() { | |
C_INCLUDE_PATH=/usr/include/ \ | |
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ \ | |
LD_LIBRARY_PATH=/usr/lib/ \ | |
make | |
} | |
package() { | |
make DESTDIR="$pkgdir" PREFIX=/usr install | |
} | |
sha512sums=" | |
7bd292559b0ecafc54bf1c1ba0c3b6b0417e8bd03bb0058f492b87295c92b50932e25621cc5f804c38ad06ffadad7bb8017872fade4a04bf617b1d4f1993aae8 dwl-v0.5.tar.gz | |
edb46da8167525d50e337dd745db705d0e735c1ed3a01bdd99ef8705f56979348b3fbc6818c15c3a2a649b40217a7a69fecd67767bf16600632728f877dee4a7 vanity_gaps.patch.txt | |
f46fc6620d2f789d60018e7d7fe9fb1eb612e7a65d20f2d7fdd9f99cbcbbd585b83bfdb11860fb5375d11ea8612b3eb92ab744e8b278490f4b1afe192d0d21c1 ipc.patch.txt | |
e337e741cd571f0e88d8eb33fa6ee0aa80a444cfd43e8d0e153400df6bb54c04539e0350c53e7b8b64f8e508236dde0cfa3667c2605924eb2bfd7f500ab8d3dc both.patch.txt | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment