PKGBUILD: Add examples on how to change configuration and apply patches

This commit is contained in:
Страхиња Радић 2022-03-15 20:34:35 +01:00
parent 6cca0750bc
commit 7c9536ba1d
No known key found for this signature in database
GPG key ID: D4EAC0812D989787
2 changed files with 11 additions and 2 deletions

View file

@ -1,7 +1,7 @@
pkgbase = sled
pkgdesc = Simple text editor
pkgver = 0.9.7
pkgrel = 1
pkgrel = 2
url = https://strahinja.srht.site/sled
arch = x86_64
license = GPL3

View file

@ -1,7 +1,7 @@
# Maintainer: Strahinya Radich <contact@strahinja.org>
pkgname=sled
pkgver=0.9.7
pkgrel=1
pkgrel=2
pkgdesc="Simple text editor"
arch=('x86_64')
url="https://strahinja.srht.site/sled"
@ -11,6 +11,15 @@ md5sums=('baffb8c1958276fb719a9ff5cabd1373')
build() {
cd $pkgname-v$pkgver
# Example on how to apply patches: dark theme patch (uncomment next
# line)
#git am 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
FALLBACKVER=$pkgver-$pkgrel PREFIX="$pkgdir/usr" ./do -c
}