add pikaur helper

This commit is contained in:
Cameron Miller
2021-11-30 15:26:34 +00:00
parent f7d8bfc10f
commit 7c4c4c53e4
7 changed files with 115 additions and 12 deletions

42
x86_64/st-cbsh/PKGBUILD Normal file
View File

@@ -0,0 +1,42 @@
# 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.r10.f7d8bfc
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"
}

View File

@@ -0,0 +1,9 @@
post_install() {
echo -e "###########################################################"
echo -e "## The source code can be found in /opt/st-cbsh ##"
echo -e "###########################################################"
}
post_upgrade() {
post_install
}