# Maintainer: Strahinya Radich pkgname=sled pkgver=0.11.9 pkgrel=1 pkgdesc="Simple text editor" arch=('x86_64') url="https://strahinja.srht.site/sled" license=('GPL3') source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~strahinja/sled/archive/v$pkgver.tar.gz") md5sums=('1aec209560925fe8d4cdf0ab9a586b93') build() { cd $pkgname-v$pkgver # Example on how to apply patches: dark theme patch (uncomment last # line in this paragraph) # Using "git am" instead would require setting up git identity #git apply patch/dark-theme.patch # Example on how to disable configuration options: turn off wrap # (uncomment next line) #sed -i 's,^\(#define ENABLE_WRAP\),//\1,' config.h } package() { local redo=$(command -v redo || echo ./do) cd $pkgname-v$pkgver FALLBACKVER=$pkgver-$pkgrel PREFIX="$pkgdir/usr" ${redo} install }