# Maintainer: Miles Alan pkgname=sxmo-utils pkgver=1.2.0 pkgrel=0 pkgdesc="Utility scripts, programs, and configs that hold the Sxmo UI environment together" url="https://git.sr.ht/~mil/sxmo-utils" arch="all" license="MIT" makedepends="libx11-dev xproto linux-headers" depends=" sxmo-dmenu sxmo-dwm sxmo-st sxmo-surf svkbd lisgd alsa-utils autocutsel codemadness-frontends conky coreutils curl dunst ffmpeg gawk geoclue grep inotify-tools mediainfo modemmanager mpv ncurses sfeed sxiv terminus-font tzdata v4l-utils vis w3m xclip xdotool xdpyinfo xinput xprop xrandr xrdb xsel xset xsetroot xwininfo youtube-dl " options="suid !check" # has no tests source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/sxmo-utils/archive/$pkgver.tar.gz" install="$pkgname.post-install $pkgname.pre-deinstall" package() { mkdir -p "$pkgdir/etc/modules-load.d/" printf %b "snd-aloop" > "$pkgdir/etc/modules-load.d/sxmo.conf" mkdir -p "$pkgdir/etc/modprobe.d/" printf %b "options snd slots=,snd-aloop" > "$pkgdir/etc/modprobe.d/sxmo.conf" make -C "$builddir" PREFIX=$pkgdir install chmod u+s $pkgdir/usr/bin/sxmo_setpineled chmod u+s $pkgdir/usr/bin/sxmo_setpinebacklight chmod u+s $pkgdir/usr/bin/sxmo_screenlock } sha512sums="bb765a1392492acbd6bb56ec870dcb4adf0decafd719678ba3e937c8bc592233b86f0e2bb8e034b572d6e9a1eeaa283a12731d26344cffb13be6d3e758ee3888 sxmo-utils-1.2.0.tar.gz"