st-patched/PKGBUILD

52 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2020-05-06 10:17:34 +00:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Marten Kante <tiyn@martenkante.eu>
pkgname=st-tiyn-git
2020-06-14 20:22:29 +00:00
pkgver=0.8.3.r45.afedf22
2020-05-06 10:17:34 +00:00
pkgrel=1
epoch=
2020-06-14 20:05:04 +00:00
pkgdesc="This is the st build of tiyn. It includes a bunch of patches."
arch=('x86_64' 'i686')
2020-05-06 10:17:34 +00:00
url="https://github.com/tiyn/st"
license=('MIT')
groups=()
2020-06-14 20:05:04 +00:00
depends=('libxft-bgra')
2020-05-06 10:17:34 +00:00
makedepends=(git)
checkdepends=()
optdepends=()
2020-06-14 20:05:04 +00:00
provides=('st')
conflicts=('st')
replaces=('st')
2020-05-06 10:17:34 +00:00
backup=()
options=()
install=
changelog=
2020-06-14 20:05:04 +00:00
source=("${pkgname}::git+$url")
2020-05-06 10:17:34 +00:00
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
2020-06-14 20:05:04 +00:00
cd "${pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
2020-06-14 20:22:29 +00:00
printf "0.8.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
2020-05-06 10:17:34 +00:00
}
build() {
2020-06-14 20:05:04 +00:00
cd "${pkgname}"
2020-05-06 10:17:34 +00:00
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
2020-06-14 20:05:04 +00:00
cd "${pkgname}"
2020-05-06 10:17:34 +00:00
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"
}