add pikaur helper
This commit is contained in:
42
x86_64/st-cbsh/PKGBUILD
Normal file
42
x86_64/st-cbsh/PKGBUILD
Normal 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"
|
||||
}
|
||||
9
x86_64/st-cbsh/st-cbsh.install
Normal file
9
x86_64/st-cbsh/st-cbsh.install
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user