I reconfigured my vm to streamline my building of DeLinuxCo ISO and I have an issue that is just stumping me. Building AUR packages locally fails, but works when using yay!
I created a manjaro-tools directory in my home directory. /home/delinuxco/manjaro-tools
and added pkgbuild directory.
I copied the manjaro-tools config files to /home/delinuxco/.config/manjaro-tools/
Contents of ~/.config/manjaro-tools/manjaro-tools.conf pointing to /home/delinuxco/manjaro-tools/pkgbuild
######################################################
################ manjaro-tools.conf ##################
######################################################
# default target branch
# target_branch=stable
# default target arch: auto detect
# target_arch=$(uname -m)
# cache dir where buildpkg, buildtree cache packages/pkgbuild, builiso iso files
cache_dir=/home/delinuxco/manjaro-tools/pkgbuild
# build dir where buildpkg or buildiso chroots are created
# chroots_dir=/home/packages/pkgbuild
chroots_dir=/home/delinuxco/manjaro-tools/pkgbuild
# log dir where log files are created
log_dir='/var/log/manjaro-tools'
The package I am trying to build is called delinuxco, I put the PKGBUILD file in /home/delinuxco/manjaro-tools/pkgbuild/delinuxco
When I try to build the package, I get the following error:
My PKGBUILD file...
# Maintainer: John Machado <john at delinuxco dot com>
pkgname=delinuxco
pkgver=1.1.0
pkgrel=1
pkgdesc="DeLinuxCo Base "
arch=('x86_64')
url="https://www.delinuxco.com"
license=('GPL')
optdepends=('awesome-terminal-fonts' 'backintime' 'backintime-cli' 'clipit' 'chromium' 'encfs' 'ffmpeg' 'gscan2pdf' 'libreoffice-fresh' 'lsd' 'mint-x-icons' 'python-secretstorage' 'python-keyring' 'redshift' 'pulseaudio-equalizer-ladspa' 'timeshift' 'nemo-media-columns' 'nemo-mediainfo-tab' 'nitroshare' 'ice-ssb' 'xcursor-thedot' 'kdenlive-appimage' 'chromium-widevine' 'albert' 'libqalculate' 'qalculate-gtk' 'numactl' 'timeshift' 'terminus-font' 'cantarell-fonts' 'ttf-liberation' 'ttf-dejavu')
provides=('delinuxco=1.1.0')
conflicts=('delinuxco')
source=("https://repo.delinuxco.com/source/packages/${pkgname}-${pkgver}-${arch}.tar.xz")
md5sums=('0b0807e975e44e27c57af132b10a0ec9')
options=(!strip)
filename=${pkgname}-${pkgver}-${arch}
prepare() {
chmod +x ${filename}.tar.xz
tar -xf ${filename}.tar.xz
}
package() {
mkdir -p ${pkgdir}/usr/share/delinuxco/etc
mkdir -p ${pkgdir}/usr/share/delinuxco/usr
mkdir -p ${pkgdir}/usr/share/icons/${pkgname}
mkdir -p ${pkgdir}/usr/share/backgrounds/${pkgname}
mkdir -p ${pkgdir}/usr/share/sounds/${pkgname}
mkdir -p ${pkgdir}/usr/share/gnome-background-properties
cp -Rf ${srcdir}/etc/* ${pkgdir}/usr/share/${pkgname}/etc/
cp -Rf ${srcdir}/usr/* ${pkgdir}/usr/share/${pkgname}/usr
cp -Rf ${srcdir}/usr/share/backgrounds/${pkgname}/* ${pkgdir}/usr/share/backgrounds/${pkgname}
cp -Rf ${srcdir}/usr/share/icons/${pkgname}/* ${pkgdir}/usr/share/icons/${pkgname}
cp -Rf ${srcdir}/usr/share/sounds/${pkgname}/* ${pkgdir}/usr/share/sounds/${pkgname}
cp -f ${srcdir}/usr/share/gnome-background-properties/delinuxco.xml ${pkgdir}/usr/share/gnome-background-properties/delinuxco.xml
}