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

View File

@ -20,6 +20,6 @@ for x in "${x86_list[@]}"
do do
cd "${dir_path}"/x86_64/"${x}" cd "${dir_path}"/x86_64/"${x}"
echo "### Making ${dir_path}/x86_64/${x} ###" echo "### Making ${dir_path}/x86_64/${x} ###"
makepkg -cf makepkg -scf --sign
find . -mindepth 1 -maxdepth 1 -type d -print0 | xargs -r0 rm -R find . -mindepth 1 -maxdepth 1 -type d -print0 | xargs -r0 rm -R
done done

View File

@ -1,24 +1,29 @@
# Maintainer: Cameron Miller <cameron@codecameron.dev> # Maintainer: Cameron Miller <cameron@codecameron.dev>
pkgname=alacritty-cbsh pkgname=alacritty-cbsh
_pkgname=cbsh-configs _pkgname=cbsh-configs
pkgver=1.0 pkgver=1.0.r11.a244d57
pkgrel=1 pkgrel=1
pkgdesc="The Default Alacritty Config file for CBSH" epoch=
arch=(x86_64) pkgdesc="The Default Alacritty Config for CBSH."
arch=('x86_64')
url="https://www.gitlab.com/cabooshyy/cbsh-configs.git" url="https://www.gitlab.com/cabooshyy/cbsh-configs.git"
license=('MIT') license=('GPL3')
groups=() groups=()
depends=() depends=(alacritty)
makedepends=('git') makedepends=(git)
checkdepends=()
optdepends=()
provides=(alacritty-cbsh) provides=(alacritty-cbsh)
conflicts=() conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install=${pkgname}.install install=${pkgname}.install
changelog=
source=("git+$url") source=("git+$url")
noextract=() noextract=()
md5sums=('SKIP') md5sums=('SKIP')
validpgpkeys=()
pkgver() { pkgver() {
cd "${_pkgname}" cd "${_pkgname}"
@ -26,7 +31,8 @@ pkgver() {
} }
package() { package() {
install -Dm755 etc/cbsh/.config/alacritty/alacritty.yml "${pkgdir}/etc/cbsh/.config/alacritty/alacritty.yml" cd cbsh-configs
install -Dm755 etc/cbsh/.config/alacritty/alacritty.yml ${pkgdir}/etc/cbsh/.config/alacritty/alacritty.yml
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.org "${pkgdir}/usr/share/doc/${pkgname}/README.org" install -Dm644 README.org "${pkgdir}/usr/share/doc/${pkgname}/README.org"
} }

View File

@ -1,7 +1,7 @@
post_install() { post_install() {
echo -e "#################################################################" echo -e "##########################################################"
echo -e "##### Config Files place inside /etc/cbsh/.config/alacritty #####" echo -e "## Config files were placed /etc/cbsh/.config/alacritty ##"
echo -e "#################################################################" echo -e "##########################################################"
} }
post_upgrade() { post_upgrade() {

View File

@ -3,7 +3,7 @@
# Maintainer: Cameron Miller <cameron@codecameron.dev> # Maintainer: Cameron Miller <cameron@codecameron.dev>
pkgname=dmenu-cbsh pkgname=dmenu-cbsh
pkgver=5.0.r8.d835098 pkgver=5.0.r10.f7d8bfc
pkgrel=1 pkgrel=1
pkgdesc="A Custom build of dmenu patched for centering, borders, custom line height and more colours" pkgdesc="A Custom build of dmenu patched for centering, borders, custom line height and more colours"
arch=(x86_64) arch=(x86_64)

46
x86_64/pikaur/PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
# Maintainer: Yauheni Kirylau <actionless dot loveless AT gmail.com>
# shellcheck disable=SC2034,SC2154
pkgname=pikaur
pkgver=1.8
pkgrel=1
pkgdesc="AUR helper which asks all questions before installing/building. Inspired by pacaur, yaourt and yay."
arch=('any')
url="https://github.com/actionless/pikaur"
license=('GPL3')
source=(
"$pkgname-$pkgver.tar.gz"::https://github.com/actionless/pikaur/archive/"$pkgver".tar.gz
)
md5sums=('554bb362dc8691026c3d49ef0a43be8e')
depends=(
'pyalpm'
'git'
)
makedepends=(
'python-commonmark'
)
optdepends=(
'asp: for ABS support in -G/--getpkgbuild operation'
'python-pysocks: for socks5 proxy support'
)
conflicts=('pikaur-git')
provides=('pikaur')
build() {
cd "${srcdir}/${pkgname}-${pkgver}" || exit 2
sed -i -e "s/VERSION.*=.*/VERSION = '${pkgver}'/g" pikaur/config.py
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}" || exit 2
/usr/bin/python3 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
for langmo in $(cd ./locale && ls ./*.mo); do
lang=$(sed -e 's/.mo$//' <<< "${langmo}")
install -Dm644 "locale/${langmo}" "$pkgdir/usr/share/locale/${lang}/LC_MESSAGES/pikaur.mo"
done
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 pikaur.1 "$pkgdir/usr/share/man/man1/pikaur.1"
cp -r ./packaging/* "${pkgdir}"
cp -r ./dist/* "${pkgdir}"
}

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
}