From 7c4c4c53e4927470ffa9d25e4b445695f2108953 Mon Sep 17 00:00:00 2001 From: Cameron Miller Date: Tue, 30 Nov 2021 15:26:34 +0000 Subject: [PATCH] add pikaur helper --- build-packages.sh | 2 +- x86_64/{alacritty => alacritty-cbsh}/PKGBUILD | 20 +++++--- .../alacritty-cbsh.install | 6 +-- x86_64/dmenu-cbsh/PKGBUILD | 2 +- x86_64/pikaur/PKGBUILD | 46 +++++++++++++++++++ x86_64/st-cbsh/PKGBUILD | 42 +++++++++++++++++ x86_64/st-cbsh/st-cbsh.install | 9 ++++ 7 files changed, 115 insertions(+), 12 deletions(-) rename x86_64/{alacritty => alacritty-cbsh}/PKGBUILD (64%) rename x86_64/{alacritty => alacritty-cbsh}/alacritty-cbsh.install (62%) create mode 100644 x86_64/pikaur/PKGBUILD create mode 100644 x86_64/st-cbsh/PKGBUILD create mode 100644 x86_64/st-cbsh/st-cbsh.install diff --git a/build-packages.sh b/build-packages.sh index 1d89f94..45bab1b 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -20,6 +20,6 @@ for x in "${x86_list[@]}" do cd "${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 done diff --git a/x86_64/alacritty/PKGBUILD b/x86_64/alacritty-cbsh/PKGBUILD similarity index 64% rename from x86_64/alacritty/PKGBUILD rename to x86_64/alacritty-cbsh/PKGBUILD index d279a02..e608b0d 100644 --- a/x86_64/alacritty/PKGBUILD +++ b/x86_64/alacritty-cbsh/PKGBUILD @@ -1,24 +1,29 @@ # Maintainer: Cameron Miller pkgname=alacritty-cbsh _pkgname=cbsh-configs -pkgver=1.0 +pkgver=1.0.r11.a244d57 pkgrel=1 -pkgdesc="The Default Alacritty Config file for CBSH" -arch=(x86_64) +epoch= +pkgdesc="The Default Alacritty Config for CBSH." +arch=('x86_64') url="https://www.gitlab.com/cabooshyy/cbsh-configs.git" -license=('MIT') +license=('GPL3') groups=() -depends=() -makedepends=('git') +depends=(alacritty) +makedepends=(git) +checkdepends=() +optdepends=() provides=(alacritty-cbsh) conflicts=() replaces=() backup=() options=() install=${pkgname}.install +changelog= source=("git+$url") noextract=() md5sums=('SKIP') +validpgpkeys=() pkgver() { cd "${_pkgname}" @@ -26,7 +31,8 @@ pkgver() { } 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 README.org "${pkgdir}/usr/share/doc/${pkgname}/README.org" } diff --git a/x86_64/alacritty/alacritty-cbsh.install b/x86_64/alacritty-cbsh/alacritty-cbsh.install similarity index 62% rename from x86_64/alacritty/alacritty-cbsh.install rename to x86_64/alacritty-cbsh/alacritty-cbsh.install index f450b4c..40f60d3 100644 --- a/x86_64/alacritty/alacritty-cbsh.install +++ b/x86_64/alacritty-cbsh/alacritty-cbsh.install @@ -1,7 +1,7 @@ post_install() { - echo -e "#################################################################" - echo -e "##### Config Files place inside /etc/cbsh/.config/alacritty #####" - echo -e "#################################################################" + echo -e "##########################################################" + echo -e "## Config files were placed /etc/cbsh/.config/alacritty ##" + echo -e "##########################################################" } post_upgrade() { diff --git a/x86_64/dmenu-cbsh/PKGBUILD b/x86_64/dmenu-cbsh/PKGBUILD index e1e048e..eb8237e 100644 --- a/x86_64/dmenu-cbsh/PKGBUILD +++ b/x86_64/dmenu-cbsh/PKGBUILD @@ -3,7 +3,7 @@ # Maintainer: Cameron Miller pkgname=dmenu-cbsh -pkgver=5.0.r8.d835098 +pkgver=5.0.r10.f7d8bfc pkgrel=1 pkgdesc="A Custom build of dmenu patched for centering, borders, custom line height and more colours" arch=(x86_64) diff --git a/x86_64/pikaur/PKGBUILD b/x86_64/pikaur/PKGBUILD new file mode 100644 index 0000000..63603fc --- /dev/null +++ b/x86_64/pikaur/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Yauheni Kirylau +# 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}" +} diff --git a/x86_64/st-cbsh/PKGBUILD b/x86_64/st-cbsh/PKGBUILD new file mode 100644 index 0000000..4b8c467 --- /dev/null +++ b/x86_64/st-cbsh/PKGBUILD @@ -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 +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" +} diff --git a/x86_64/st-cbsh/st-cbsh.install b/x86_64/st-cbsh/st-cbsh.install new file mode 100644 index 0000000..cb6c354 --- /dev/null +++ b/x86_64/st-cbsh/st-cbsh.install @@ -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 +}