summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbb17ce78febd6b896843425f132c9960a191f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Strahinya Radich <contact@strahinja.org>
pkgname=sled
pkgver=0.19.2
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=('87e3623e9e99f84ec3515fd95b2e445b')

build() {
	cd "${pkgname}-v$pkgver"

	# Example on how to apply patches: syntax patch (uncomment last
	# line in this paragraph); program patch(1) needed
	#patch -p1 < patch/syntax.patch

	# Example on how to set configuration options: turn off wrap
	# (uncomment the next FOUR lines by deleting only the first # on a line)
#	var_to_set='enable_wrap'
#	value_to_set=0
#	sed 's@^\(const [^[:space:]]\{1,\} '"${var_to_set}"'[[:space:]]\{0,\}='\
#'[[:space:]]\{0,\}\)[01]@\1'"${value_to_set}"'@' config.def.h > config.h
# ^---- *Don't* indent the previous line!

	make FALLBACKVER="${pkgver}-$pkgrel" DESTDIR="$pkgdir" PREFIX="/usr" all
}

package() {
	cd "${pkgname}-v$pkgver"

	make FALLBACKVER="${pkgver}-$pkgrel" DESTDIR="$pkgdir" PREFIX="/usr" \
		install
}