Problem With PKGBUILD and makepkg
Removed before it was archived.
Edited 19 Aug 2020. We only hold this version.
About this post
- Posted
- Archived
- Deleted on
- Edited
- Score
- 0 · 50% up
- Kind
- Text
- ID
- icsgl4
Removed before it was archived.
Edited 19 Aug 2020. We only hold this version.
9 comments
I think you need to cd into the directory after build
I tried
cd "$pkgname"beforemakecommand inbuild()section.But this error showed:
==> Starting build()...~/Downloads/noip-2.1.9-1/PKGBUILD: line 10: cd: noip-2.1.9-1: No such file or directory==> ERROR: A failure occurred in build().This is your problem, but I can't spot what the error is. It'd be a good idea to get into the habit of properly handle the release number though.
EDIT: Isn't this the same as https://aur.archlinux.org/packages/noip/ ?
The build and package functions start in SRCDIR, which is usually the src/ directory in the same place as your PKGBUILD. The source will be extracted inside there, and the directory name will depend on how the source tarball is structured. Look inside src/ to find the correct name.
Some other things:
pkgname=noip-- don't put the version herepkgver=2.1.9-- it goes herepkgrel=1-- this starts at one. Its the Arch package number for this version number. If you change the PKGBUILD without changing pkgver you increment it. When you change pkgver to get a new source version, you reset pkgrel to 1.make DESTDIR="$pkgdir/" installotherwise it will try to install directly into your system. Setting the DESTDIR makes it place the files where makepkg expects them.Although I don't maintain any packages on the AUR, I noticed some things are wrong from what I've seen in PKGBUILDs from the AUR. Your variables should be set up like:
pkgname=("noip")pkgver=2.1.9pkgrel=1So that when someone installs the package, it'll be installed as
noip-2.1.9-1.And regarding the error during
build(), I believe you should do acd $srcdirfirst and then start building. You should refer to other PKGBUILDs from the AUR, I'm not completely sure about this.Do you use cw ? Colour wrapper wraps file and causes similar issues
alternative pkg for no-ipupdater
aur/inadyn-fork 2.7-1 (14, 0.00)
Dynamic DNS client with SSL/TLS support
aur/inadyn-fork-git 2.3.1.r0.gedd31bd-1 (0, 0.00)
Dynamic DNS client with SSL/TLS support
aur/inadyn-mt 02.28.10-1 (8, 0.00)
A simple dynamic DNS client based on inadyn
#/etc/inadyn.conf
background
verbose 1
period 300
cache-dir /home/$USER/.cache/noip
startup-delay 60
logfile /home/$USER/.logs/ddns.log
pidfile /run/inadyn/inadyn.pid
system default@no-ip.com
username no-ip username
password no-ip passwd
alias url of no-ip hostname