A new user interface for you! Read more...

File PKGBUILD of Package st-scrollback

# Maintainer: Matthew T Hoare <matthew.t.hoare at gmail dot com>

_pkgname=st
pkgname="${_pkgname}-scrollback"
pkgver=0.8.1
pkgrel=4
pkgdesc="A simple terminal implementation for X"
arch=('x86_64')
url="http://${_pkgname}.suckless.org"
licence=('MIT')
depends=('libx11' 'libxft' 'freetype2')
conflicts=('archlabs-st')
source=("https://git.suckless.org/${_pkgname}/snapshot/${_pkgname}-${pkgver}.tar.gz"
	'LICENSE'
    'config.diff'
    "${pkgname}-0.8.diff"
    "${pkgname}-mouse-0.8.diff"
    "${pkgname}-mouse-altscreen-0.8.diff")
sha512sums=('481c9c3c786ed572b14ae2a23c438c3c1f47d8e85f11ee1d66afbdea8aba11f021e822a13a771a4751eb0f1a42f47da10090f2a2f3402d818e2c8e6d5c81f599'
    'b6f9d80164b249c618683f5195e122b9cce80552fc5c0cfeccaff04025a9c152b6ce9f3ff079bce959b22cf3a920138f2d1c3a769785a8096181cab575b06613'
    'ffe24d8d39a3f3e61d36714eadbd5ec1c939e34184352064855bb9da683dcddbb3b3787ec987c9aaf3df3f2e4c81c418cfd1cb98b8aecc7f70c7e7a9db77cc4f'
    '3bf1f79273d490b22d4c45130aaf2a194b49da71656740bb8f69d45cfd9692de0b9eaccce4242004c823dc59289ca4ddf47ccd75ee50b4d3e3809e4ed6deee8b'
    '980e4b7ac3a27995c303823bdc0dd0928dc72d74ad5632efc33631e43e01cb00681af542ce393a3e8ebe8daeb9a3ccb2089f03d4e23996efed2f1c105f1efac6'
    'e3e56d6fc6770424ba5bfbbcd35dd2ef69418ba7e7518fe18c20b8cc74821633640a58368422ee2a7e8f1438fda5bcf5319c97fa6bb9d7a35a3ca7e3f22b0e5f')

prepare() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	patch -p1 -i "../${pkgname}-0.8.diff" || return 1
	patch -p1 -i "../${pkgname}-mouse-0.8.diff" || return 1
	patch -p1 -i "../${pkgname}-mouse-altscreen-0.8.diff" || return 1
    patch -p1 -i ../config.diff || return 1
}

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make || return 1
}

package() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
	install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}" || return 1
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}