blob: bfe936547526d391797558cd4a4fe2b50e34fc5f (
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
36
37
|
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
_pkgname=sline
pkgname="${_pkgname}-git"
pkgver=r157.afa1ce8
pkgrel=1
pkgdesc='Simple line-editing and command history library.'
arch=('any')
url="https://git.sr.ht/~ariadnavigo/${_pkgname}"
license=('MIT')
depends=('glibc')
makedepends=('git' 'scdoc')
source=("git+${url}")
sha256sums=('SKIP')
conflicts=(${_pkgname})
provides=(${_pkgname})
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
sed -i "s/LDFLAGS.*$/&,-z,now/" config.mk
}
build() {
cd "${_pkgname}"
make
}
package() {
cd "${_pkgname}"
make DESTDIR="${pkgdir}" PREFIX='/usr' MANPREFIX=/usr/share/man install
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|