cbsh-arch-pkgbuild/x86_64/st-cbsh/PKGBUILD
2022-07-08 21:01:34 +01:00

43 lines
1.1 KiB
Bash

# The following guidelines are specific to BZR, GIT, HG and SVN packages.
# Other VCS sources are not natively supported by makepkg yet.
# Maintainer: Cameron Miller <cameron@codecameron.dev>
pkgname=st-cbsh
pkgver=5.0.r29.da1c4a9
pkgrel=1
pkgdesc="A Custom build of st patched with a few nice to have's"
arch=(x86_64)
url="https://www.gitlab.com/cabooshyy/st-cbsh.git"
license=('MIT')
groups=()
depends=()
makedepends=('git')
provides=(st)
conflicts=(st st-cbsh-git)
replaces=()
backup=()
options=()
install=${pkgname}.install
source=("git+$url")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "5.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd st-cbsh
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd st-cbsh
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.org "${pkgdir}/usr/share/doc/${pkgname}/README.org"
}