46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# "my" st build!
|
|
|
|
pkgname=st
|
|
_pkgname=st
|
|
pkgver=0.8.5.r1391.36d225d
|
|
pkgrel=1
|
|
pkgdesc='Simple virtual terminal emulator for X'
|
|
url='https://github.com/LukeSmithxyz/st.git'
|
|
arch=('i686' 'x86_64')
|
|
license=('MIT')
|
|
options=('zipman')
|
|
depends=('libxft')
|
|
makedepends=('ncurses' 'libxext' 'git')
|
|
|
|
# include config.h and any patches you want to have applied here
|
|
source=("${_pkgname}::git+$url"
|
|
"delkey.diff::https://st.suckless.org/patches/delkey/st-delkey-20201112-4ef0cbd.diff")
|
|
sha256sums=('SKIP' 'SKIP')
|
|
provides=('st')
|
|
|
|
pkgver() {
|
|
cd "${_pkgname}"
|
|
_pkgver=$(awk '/VERSION/ {print $3}' config.mk|head -1)
|
|
echo "${_pkgver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "${_pkgname}"
|
|
# skip terminfo which conflicts with nsurses
|
|
sed -i '/tic /d' Makefile
|
|
find .
|
|
patch -p0 -N -i "${srcdir}/delkey.diff"
|
|
}
|
|
|
|
build() {
|
|
cd "${_pkgname}"
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
|
|
}
|
|
|
|
package() {
|
|
cd "${_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"
|
|
}
|