You are not logged in.

#1 2018-10-24 14:03:49

Cookie23
Member
Registered: 2018-10-24
Posts: 11

[solved]installing from AUR : i don't find some files for dwm

Well, this is the first time i install a package from AUR, so I'm sorry for this newbie question, but I downloaded the dwm package from AUR and I can't find any dwm.c or config.def.h.

how i get the package :

curl -L https://aur.archlinux.org/cgit/aur.git/snapshot/dwm.tar.gz | tar zx

I entered the dwm directory and I only have these files : config.h dwm dwm.install PKGBUILD

Dwm website is telling me to copy the config.def.h into config.h but I don't have any, and I found an interesting customization for the dwm.c but I can't find this, too. So, what could I miss ?

Last edited by Cookie23 (2018-10-24 15:29:49)

Offline

#2 2018-10-24 14:07:50

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved]installing from AUR : i don't find some files for dwm

Welcome to the BBS.

This is covered well elsewhere on these boards, but very thoroughly on the AUR wiki page.

Research is a virtue!

All the best,

-HG

Offline

#3 2018-10-24 14:13:36

Cookie23
Member
Registered: 2018-10-24
Posts: 11

Re: [solved]installing from AUR : i don't find some files for dwm

Thanks for the response, ... yes I read too quickly, I thought makepkg would directly make a binary^^ sorry for that.

Offline

#4 2018-10-24 14:26:10

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved]installing from AUR : i don't find some files for dwm

C'est la vie. Do read more carefully next time; Arch expects you to mostly fend for yourself (albeit with the aid of reasonable documentation and a mostly consistent system).

Please also remember to mark your thread as solved.

All the best,

-HG

Offline

#5 2018-10-24 14:45:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [solved]installing from AUR : i don't find some files for dwm

Cookie23 wrote:

I thought makepkg would directly make a binary

It will.  But that's not all it does.

For most packages, you'd just run makepkg (likely with flags like -s or -si) in the directory with the PKGBUILD.  But with many suckless packages (e.g., dwm, st) you will likely want to modify the source files before building (e.g., config.def.h).  So in these cases you'd use makepkg to obtain the source (makepkg -so) then modify anything in the src folder as needed, then complete the build (makepkg -e).

Many of us who use suckless tools will keep our own PKGBUILD around that automates the above with our own patches so updating is easier.  (Personally I use a short sed script for st, so I just add a line like `sed -if /path/to/my/st.sed config.h` to the prepare function of the PKGBUILD).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2018-10-24 15:29:16

Cookie23
Member
Registered: 2018-10-24
Posts: 11

Re: [solved]installing from AUR : i don't find some files for dwm

For most packages, you'd just run makepkg (likely with flags like -s or -si) in the directory with the PKGBUILD.  But with many suckless packages (e.g., dwm, st) you will likely want to modify the source files before building (e.g., config.def.h).  So in these cases you'd use makepkg to obtain the source (makepkg -so) then modify anything in the src folder as needed, then complete the build (makepkg -e).

Many of us who use suckless tools will keep our own PKGBUILD around that automates the above with our own patches so updating is easier.  (Personally I use a short sed script for st, so I just add a line like `sed -if /path/to/my/st.sed config.h` to the prepare function of the PKGBUILD).

Thanks for making it clear

Offline

Board footer

Powered by FluxBB