55 lines
1.6 KiB
Bash
55 lines
1.6 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
|
|
_pkgname=xbps-git
|
|
# pkgver=0.59.1.r191.ga1a0167d
|
|
pkgver=0.59.1
|
|
pkgrel=02
|
|
pkgdesc="(Void Linux's) The X Binary Package System - install void from Joborun or Obarun or Arch"
|
|
## https://docs.voidlinux.org/installation/guides/chroot.html ##
|
|
## very much like installing arch based systems with pacman ##
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/void-linux/xbps"
|
|
depends=('ca-certificates' 'libarchive')
|
|
makedepends=('zlib' 'openssl' 'git')
|
|
replaces=(xbps-git)
|
|
_commit=a1a0167d8027d0360d8988d69616d0c8e1b2be9e # refs/heads/master
|
|
#source=("$_pkgname::git+https://github.com/void-linux/xbps.git")
|
|
source=("$_pkgname::git+https://github.com/void-linux/xbps.git#commit=$_commit")
|
|
|
|
#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"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('custom:2-clause-BSD')
|
|
|
|
sha256sums=(SKIP)
|
|
|