#Newbie to packaging

31 messages · Page 1 of 1 (latest)

arctic basin
#

This weekend (+ half a week) i made my first ever AUR package:
https://github.com/fami-fish/zooc/tree/aur_release

So far i have this, however Im not sure if its correct. Here are my main questions:

  • Should the c app copy from /etc/ into your local XDG_CONFIG_HOME? if so, should i define a macro (-Dprefix=$(prefix) in the makefile then somehow pass it in from PKGBUILD?)
  • Should GLEW/GL/X11/XRANDR be in my depends on the PKGBUILD? What other relavant packages would i need to depend on (dependencies of gl/x11??)
    Im completely new to packaging and the build process surounding it so some help would be greatly appreciated :D
GitHub

An X11 magnifier application written in C inspired by tsoding's Boomer - GitHub - fami-fish/zooc at aur_release

stray stratus
arctic basin
#

ah so no -03

#

got it thanks for that

stray stratus
#

@arctic basin did you test install it to see if it works?

#

in a clean chroot

arctic basin
# stray stratus in a clean chroot

not yet actually, I wasn't exactly done with my build process yet since i still dont know how to pass in the /etc/ (datadir path) all the way from the PKGBUILD into C

#

for the purposes of copying any files in /etc/ to the local ~/.config/ if they are present

stray stratus
#

@arctic basin don't do that

arctic basin
#

also, i thought copying configs and files from etc was expected on first startup

zealous gulch
#

I believe packages aren't supposed to touch home directories

stray stratus
#

@zealous gulch they are not

arctic basin
zealous gulch
#

Apps can, but packages aren't supposed to as they're supposed to be more generic and not reference things like the current user

#

If you directly put the config file in the package it can cause issues down the line with multiple users and if a username is changed

arctic basin
#

right

#

so i should only install to /etc within PKGBUILD (by calling make install with the dest dir), and the app itself should just attempt to read XDG_CONFIG_HOME/mypkg/config.conf, and if thats not found read the default one in /etc?

#

how will the c app know where /etc is though. a user could install to /.local/etc, and then not have their configs ever read so does the make file need to define a macro for the prefix??

#

@zealous gulch

zealous gulch
#

I haven't really heard of anyone using .local/etc/

zealous gulch
arctic basin
#

or should this allow in theory for some other path

zealous gulch
#

I think it's preferred if it can be configured during compilation

#

Some of it is up to you though

arctic basin
#

out now to a mirror near you!