actually i'm not using this st

but rather st-luke-git
This commit is contained in:
Vitor Gonçalves 2024-01-23 22:44:58 -03:00
parent 4426951557
commit f6783c3599
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
1 changed files with 0 additions and 45 deletions

View File

@ -1,45 +0,0 @@
# "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"
}