blob: 8c622f210bf7616dfe25e4d5b69c858e8a9532ea (
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
|
# Maintainer: Gabriel Rasteli <archgabr@tutanota.com>
pkgname=glr-st-git
pkgver=0.8.r13.5dad6e0
pkgrel=1
pkgdesc="My personal build of st."
arch=(x86_64)
url="https://gitlab.com/glr01/glr-st.git"
license=('MIT')
depends=(ttf-hack)
makedepends=(git)
provides=(st)
conflicts=(st)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "0.8.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build () {
cd glr-st
make X11NC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd glr-st
mkdir -p "${pkgdir}/opt/${pkgname}"
cp -rf * "${pkgdir}/opt/${pkgname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|