[OPEN] Run post install PKGBUILD script

User avatar
erikdubois
Captain
Posts: 6012
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Here is a video of package build

three sources in one build

Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.
aw512
Crewman
Posts: 15
Joined: Wed Dec 12, 2018 1:49 pm

From your video I realized what I was doing wrong.
From one of your guides I set up an arch-chroot in which to build packages.
Then make packages in the chroot environment with a script.

Code: Select all

#!/bin/bash

CHROOT=$HOME/Documents/chroot
arch-nspawn $CHROOT/root pacman -Syu
makechrootpkg -c -r $CHROOT
The issue is that that with the above script the arch-chroot rebuilds itself after every call and removes any repos added to the pacman.conf file.
As shown in your video makepkg worked without issue.
Thanks for the help and all your guides
User avatar
erikdubois
Captain
Posts: 6012
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

When using chroot then you edit the pacman.conf and/or mirrors files as well in there.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.
Post Reply

Return to “Repo”