You are not logged in.
Hello,
I'm trying to learn to make a PKGBUILD which should offer some options during the process.
I rose some doubt because the additional function, to ask questions, will fail to add required dependencies.
I don't know much about makepkg, then I don't see way to execute the question out of the build() function. Isn't it allowed?
do it good first, it will be faster than do it twice the saint
Offline
Offline
Let the user edit some local variables in the PKGBUILD before calling makepkg, but only if it is really required.
Offline
Here is a similar recent thread: https://bbs.archlinux.org/viewtopic.php?id=147203
Offline
Let the user edit some local variables in the PKGBUILD before calling makepkg, but only if it is really required.
You can even modify the dependency array:
# configuration, enable with "y"
_enable_foo=n
_enable_bar=y
# end configuration
depends=(glibc something)
# add dependencies for configuration
[ "$_enable_foo" = y ] && depends+=(libfoo)
if [ "$_enable_bar" = y ]; then
depends+=(libbar)
fi
# end additional dependencies
function build() {
if [] ... fi
if [] ... fi
make
}
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I stand for the dictated general options.
Mostly there should be a PKGBUILD for each of the greater option.
@drcouzelis, thanks for the info.
do it good first, it will be faster than do it twice the saint
Offline
Do something similar to what graysky did with the linux-ck PKGBUILD: Create variables unique to the PKGBUILD, and then place comments at the top describing those variables. No one should be building from the AUR without reading PKGBUILDs anyway.
Offline
Do something similar to what graysky did with the linux-ck PKGBUILD: Create variables unique to the PKGBUILD, and then place comments at the top describing those variables. No one should be building from the AUR without reading PKGBUILDs anyway.
Added bonus point - you may be able to cause bugs for those using yaourt (which is good because it forces people to THINK when installing). linux-ice and linux-rt-ice do similar.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Group packages use a iteractivity, doesn't they?
How so? The interactivity is part of pacman, not part of each PKGBUILD.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline