jobextra/xbps/PKGBUILD

64 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=xbps
#pkgver=0.59.1.r222.gefee4f1e
pkgver=0.59.2
pkgrel=02
pkgdesc="(Void Linux's) The X Binary Package System - install void and 66 from Joborun or Obarun or Arch"
## https://docs.voidlinux.org/installation/guides/chroot.html ##
## very much like installing arch based systems with pacman ##
url="https://github.com/void-linux/xbps"
depends=('ca-certificates' 'libarchive')
makedepends=('zlib' 'openssl' 'git')
replaces=(xbps-git)
_commit=d94e394f0f99bb9b1092e46fc95c468a2014cf7f # tags/0.59.2
#source=("git+https://github.com/void-linux/xbps.git")
source=("git+https://github.com/void-linux/xbps.git#commit=$_commit"
50-repository-unofficial-void-66.conf
README.md::https://codeberg.org/mobinmob/66-voidlinux/raw/branch/master/README.md)
install=xbps.install
#pkgver() {
# cd "$srcdir/$pkgname"
# git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
#}
prepare() {
cd "$srcdir/$pkgname"
export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
./configure --prefix=/usr --sysconfdir=/etc
sed -i '/-Werror/d' config.mk
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 LICENSE.3RDPARTY "$pkgdir/usr/share/licenses/$pkgname/LICENSE.3RDPARTY"
## This is the additional unofficial void repository for the 66 pkgs to switching runit to s6 & 66
install -Dm644 $srcdir/50-repository-unofficial-void-66.conf "$pkgdir/usr/share/xbps.d/50-repository-unofficial-void-66.conf"
install -Dm644 $srcdir/README.md "$pkgdir/usr/share/docs/void.66/README.md"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom:2-clause-BSD')
sha256sums=(SKIP
0c353b54d951df01435ab0ac5ad13e9614aceb4d7589ef26d2fb3c4de22cc3a3 # 50-repository-unofficial-void-66.conf
e2ec3b222eefa57a70cb64042f324bce924b44d0f781298945e54a0dbe72266e) # README.md
## cbe6810762178371f2512370945878c87538b16b8d7a66fe378c2a465ad9c1bc xbps-0.59.2-02-x86_64.pkg.tar.lz