You are not logged in.

#1 2012-01-29 01:19:21

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

[SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

Hi all,

I am trying to save automatically the package PKGBUILD when I install a package with an aur helper. I use packer and aurget.

I modified makepkg.conf and set this relevant variables:

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
PKGDEST=/var/cache/pacman/pkg/aur
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
SRCDEST=/var/cache/pacman/pkg/aur/src

The PKGDEST works fine and packages are saved in the specified path.

However SRCDEST variable doesn't seem to work, as I expected the PKBUILDs and other sources to be saved there, but there are no files in the path.

In the end what I am trying to emulate is something similar to ABS but for installed packages from AUR.

Last edited by adrianbs (2012-01-29 12:18:41)

Offline

#2 2012-01-29 02:07:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

That's because the source files are only cached, not saved...

I use this simple wrapper for cower:

#!/bin/sh
# install AUR packages with cower

cd $HOME/Build && cower -d "$1"
builddir="$_"
cd "$builddir" && $EDITOR PKGBUILD
    makepkg -si && cd - &>/dev/null

    read -p "Remove Build directory? [Y/n]? " yn
    if [ "$yn" = "y" ]; then
        printf "\n%s\n" "Removing build directory..." 
        rm -rf "$builddir"
    else
        printf "%s\n" "Build completed."
    fi

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-01-29 06:51:50

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

Uh, Jason... isn't that what this is for?

% cat ~/.config/cower/config | grep TargetDir
#TargetDir =
TargetDir = /var/abs/local/aur

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

#4 2012-01-29 07:10:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

It could be.


But having a config file for a single line could also be considered bloat smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-01-29 10:34:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,657
Website

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

SRCDEST is where any remote files downloaded during "makepkg" are stored.   SRCPKGDEST is where the tarball generated using "makepkg --source" (which contains the PKGBUILD etc) is stored.

Online

#6 2012-01-29 12:17:35

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

Thank you all. I'll try both solutions.

Offline

#7 2012-01-30 01:18:25

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

jasonwryan wrote:

It could be.


But having a config file for a single line could also be considered bloat smile

And having a 10-line script isn't =p?


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

#8 2012-01-30 01:33:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

Cower (as awesome as it is) doesn't open the PKGBUILD in vim, build the package and then ask if you want to keep the build directory.


I reckon my 10 lines are pretty well spent... wink


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2012-01-31 13:53:08

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

jasonwryan wrote:

Cower (as awesome as it is) doesn't open the PKGBUILD in vim, build the package and then ask if you want to keep the build directory.


I reckon my 10 lines are pretty well spent... wink

Cower doesn't but pacaur (which wraps it) does wink

It has an option it the config file to keep the build dir.

Offline

#10 2012-01-31 18:01:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Saving PKGBUILDs with makepkg or AUR helpers

adrianbs wrote:
jasonwryan wrote:

Cower (as awesome as it is) doesn't open the PKGBUILD in vim, build the package and then ask if you want to keep the build directory.


I reckon my 10 lines are pretty well spent... wink

Cower doesn't but pacaur (which wraps it) does wink

It has an option it the config file to keep the build dir.


And for only an extra 872 lines of code... tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB