1
0
mirror of https://github.com/alrayyes/st synced 2023-11-14 15:56:30 +00:00
st/PKGBUILD

59 lines
1.9 KiB
Bash
Raw Normal View History

2018-04-02 12:57:57 +00:00
# Maintainer: Ryan Kes <alrayyes gmail com>
2019-06-14 15:46:39 +00:00
pkgname=higherlearning-st
2019-03-13 09:55:22 +00:00
pkgver=0.8.2
2018-04-02 12:57:57 +00:00
pkgrel=1
pkgdesc='A simple virtual terminal emulator for X.'
arch=('i686' 'x86_64')
license=('MIT')
2019-06-14 15:27:56 +00:00
depends=('libxft' 'libxext')
2019-06-14 15:37:19 +00:00
optdepends=('nerd-fonts-source-code-pro')
2018-04-02 12:57:57 +00:00
makedepends=('ncurses')
2019-06-14 15:59:27 +00:00
conflicts=('st')
2018-04-02 12:57:57 +00:00
url="http://st.suckless.org"
2019-03-13 15:01:37 +00:00
_patches=("st-clipboard-0.8.2.diff"
"st-scrollback-20190122-3be4cf1.diff"
"st-scrollback-mouse-0.8.diff"
"st-vertcenter-20180320-6ac8c8a.diff"
2019-03-13 09:55:22 +00:00
"local-st-alpha-0.8.2.diff"
"local-disable-bold-italic-fonts.diff")
2018-04-02 12:57:57 +00:00
2019-06-14 15:47:59 +00:00
source=("http://dl.suckless.org/st/st-$pkgver.tar.gz"
2018-04-02 12:57:57 +00:00
"config.h"
"${_patches[@]}")
2019-03-13 09:55:22 +00:00
sha256sums=('aeb74e10aa11ed364e1bcc635a81a523119093e63befd2f231f8b0705b15bf35'
'2479b5f9c0b31342e7ede5e37902e84c8ea26a4454e17dc584aa1845eaead129'
'7be1a09831f13361f5659aaad55110bde99b25c8ba826c11d1d7fcec21f32945'
'30c9bcec5801614dd5cc8b96f470d7431e83d5d2af87bb2305df60082e5ab4ed'
2018-04-02 12:57:57 +00:00
'3fb38940cc3bad3f9cd1e2a0796ebd0e48950a07860ecf8523a5afd0cd1b5a44'
'04e6a4696293f668260b2f54a7240e379dbfabbc209de07bd5d4d57e9f513360'
2019-03-13 09:55:22 +00:00
'67b1bdc717e3f7914d04f0c72bc8a3f6efe91790248611c0a2c2dc905bf206bd'
'59d5719a68e2f0e25c44b6ad9fab0d62ee8a6c5bcbcffb38176e9950cda16b15')
2018-04-02 12:57:57 +00:00
prepare() {
2019-06-14 15:49:44 +00:00
cd $srcdir/st-$pkgver
2018-04-02 12:57:57 +00:00
# skip terminfo which conflicts with nsurses
2018-04-02 16:34:52 +00:00
sed -i '/\ttic -sx st.info/d' Makefile
2018-04-02 12:57:57 +00:00
for patch in "${_patches[@]}"; do
echo "Applying patch $(basename $patch)..."
patch -Np1 -i "$srcdir/$(basename $patch)"
done
cp $srcdir/config.h config.h
}
build() {
2019-06-14 15:49:44 +00:00
cd $srcdir/st-$pkgver
2018-04-02 12:57:57 +00:00
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
2019-06-14 15:49:44 +00:00
cd $srcdir/st-$pkgver
2018-04-02 12:57:57 +00:00
make PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
}