I'm working on installing a custom package, gforth
https://www.gnu.org/software/gforth/I'm using this package file:
name=gforth
version=0.7.3
release=1
source=(https://ftp.gnu.org/gnu/${name}/${name}-${version}.tar.gz)
build() {
cd ${name}-${version}
./configure
make
make DESTDIR=$PKG install
}
I've made the directory /usr/ports/perso/gforth, and invoke
sudo pkgmk -d
Everything works smooth, but at one point I get
make[3]: Leaving directory '/usr/ports/perso/gforth/work/src/gforth-0.7.3'
make[2]: Leaving directory '/usr/ports/perso/gforth/work/src/gforth-0.7.3'
make[1]: Leaving directory '/usr/ports/perso/gforth/work/src/gforth-0.7.3'
=======> ERROR: Building '/usr/ports/perso/gforth/gforth1588685885x86_64.cards.tar.xz' failed.
To check my work, I went ahead and installed the application normally (not as a package). The installation went through smoothly (so I know it's not a problem with the application itself), and then, for kicks, I went ahead and attempted to complete the package installation - and it worked! I was then able to add the package and have it on my system. However, to make sure my package formula was correct, I uninstalled the package, and got rid of the conventional installation. That is, no more 'gforth' files on my system, except the Pkgfile in gforth's ports folder.
I reattempt the install, and I get this error. When I had succeeded in installing the package, I did, in fact, get that tar.xz file, and was able to use it to fully install the package.