News:

Are you new to Groestlcoin and have questions you are afraid to ask?
Check out the New Users board and post there.
Welcome to all newcomers.

Main Menu

How to package and publish on AUR for Groestlcoin Core

Started by jackielove4u, June 06, 2022, 05:14:21 PM

Previous topic - Next topic

jackielove4u

The following were tested in Linux archlinux 5.15.44-1-lts, some dependencies can be different in other distros.
If you have issues make sure:
     - HyperVM is enabled in bios (to enable 64bit in virtualbox)
     - Hyper V is uninstalled on Windows
     - Disable mcafee anti-virus, Malwarebytes and roquekiller
     - Disable sleep/hibernate mode on windows

Create a Arch VM as a building environment (it will be accessed via SSH) Follow the instructions at: https://itsfoss.com/install-arch-linux-virtualbox/

You will need an aur.archlinux.org account to publish a package. You need to have a new Public SSH key (generated below) and your public GPG key registered with your account.

Set port forwarding rule on virtualbox:
name: SSH
protocol: TCP
hostport: 22222
guest port: 22


sudo systemctl enable sshd
sudo systemctl start sshd

#Export your key (or export private key on Kleopatra):
gpg --export-secret-keys $ID > my-private-key.asc
# Copy the key to the VM. To copy the exported secret-keys you can use SFTP client on portnumber 22222
#To import the key, run:
gpg --import my-private-key.asc
#Setup a passphrase for the secret key when asked
gpg --edit-key $ID
passwd
#Enter existing passphrase then press enter twice and consider the warnings from the tool and its implications before proceeding.

pacman -Syuq --noconfirm --needed $(pacman -Sgq base-devel | grep -v gcc) gcc-multilib && rm -rf /var/cache/pacman/pkg/*
pacman -Syuq --noconfirm --needed git mercurial bzr subversion openssh && rm -rf /var/cache/pacman/pkg/*
pacman -S nano

sudo nano ~/.gnupg/gpg.conf
default-key D11BD4F33F1DB499
trusted-key D11BD4F33F1DB499
ctrl+o , ctrl+x

sudo nano ~/.makepkg.conf
PACKAGER="groestlcoin <[email protected]>"
GPGKEY="0xD11BD4F33F1DB499"
ctrl+o , ctrl+x

ssh-keygen -f ~/.ssh/aur

sudo nano ~/.ssh/config
Host aur.archlinux.org
  IdentityFile ~/.ssh/aur
  User aur
ctrl+o , ctrl+x

git config --global user.name "gruve-p"
git config --global user.email [email protected]
git config --global user.signingkey D11BD4F33F1DB499
git config --global core.editor nano

#test the package
makepkg -s

git clone ssh://[email protected]/groestlcoin.git
cd groestlcoin
makepkg --printsrcinfo > .SRCINFO
git add Changelog groestlcoin-qt.appdata.xml  groestlcoin-qt.desktop  groestlcoin.sysusers  groestlcoin.tmpfiles  PKGBUILD .SRCINFO
git commit -m "Add groestlcoin pkgbase"
git push

Be sure to regenerate .SRCINFO whenever PKGBUILD metadata changes, such as pkgver() updates; otherwise the AUR will not show updated version numbers.