You are not logged in.

#1 2012-06-11 13:10:56

tarakbumba
Member
From: Turkiye
Registered: 2008-07-17
Posts: 72

Meric -- Another package helper (packer fork)

Hi. Here is Meric. I have made modifications to famous and well written "packer" (thanks to Matthew Bruenig) to fit my needs. So a packer fork "Meric" has born. I decided to share it with community. But remember, i am neither a coder nor a bash expert. So, my modifications may be an ugly hack to packer; but it just works for me. I hope you'll enjoy it. All credits must go Mr. Bruening.

From Meric README:

Meric is a package helper for Arch Linux. It can retrieve packages from official repositories and Arch User Repository (a.k.a. AUR).

Meric is a fork of famous "packer" which is developed by Matthew Bruenig <matthewbruenig@gmail.com>

Meric is born from the needs of the autor.

Meric has a few differences from packer:

  1- Meric has a config file. Users may use it for daily meric tasks instead of using options in commandline. Also makepkg options can be set there. Once options have been set; meric can call makepkg with these options by default.

2- Meric has the ability of remove installed dependencies after package creation. Like "makepkg -r". Not perfect but it works for my needs.

3- Meric can skip checking and installing from specified repositories with "--skip-repo" option. This is useful when you setup your custom repository with AUR packages. Aur helpers, including packer, won't treat those packages as aur packages because it thouhgt that they came from a repo (your custom repo). So those packages always skipped when AUR updates checking phase. This option prevents this for you.( also can be set in meric.conf to make it default behaviour)

4- Meric can use translations. For the sake of keep package and its dependencies minimal; only one text file (in bash script format) is used to hold and provide all translations. See TRANSLATIONS section.

5- Meric can call pacman with a custom pacman.conf file for all pacman related operations. Just place your custom pacman.conf under $HOME/.config/meric/ directory.

Github link: https://github.com/tarakbumba/meric
Aur link: https://aur.archlinux.org/packages.php?ID=59946


Say what you mean, mean what you say

Offline

#2 2012-06-11 20:56:17

fschiff
Member
Registered: 2011-10-06
Posts: 71

Re: Meric -- Another package helper (packer fork)

471,475c604,611
<     '--auronly') auronly='1' ;;
<     '--devel') devel='1' ;;
<     '--skipinteg') MAKEPKGOPTS="--skipinteg" ;;
<     '--') shift ; packageargs+=("$@") ; break ;;
<     -*) echo "packer: Option \`$1' is not valid." ; exit 5 ;;
---
>     '-a'|'--auronly') auronly='1' ;;
>     '--devel') devel='1' ;;
>     '--skipinteg') MAKEPKGOPTS+=("--skipinteg") ;;
>     '--cleandeps'| '-c') cleandeps='1' ;;
>     '--version'| '-v') echo -n "Meric - $VERSION" ;;
>     '--skip-repo') skipped_repos="$2" ; skip_repo='1' ; shift ;;
>     '--') shift ; packageargs+=("$@") ; break ;;
>     -*) echo -e "${COLOR7}$ERROR :$ENDCOLOR $ERROR9" ; exit 5 ;;

MAKEPKGOPTS= is different.  Possible bug?
Its the only place where the variable gets set.


234c322
<   echo "${PKGURL}$(jshon -Q -e results -e URLPath -u < "$tmpdir/$1.info")"
---
>   echo "${PKGURL}$(jshon -e results -e URLPath -u < "$tmpdir/$1.info")"

-Q option

Offline

#3 2012-06-11 21:46:38

tarakbumba
Member
From: Turkiye
Registered: 2008-07-17
Posts: 72

Re: Meric -- Another package helper (packer fork)

fschiff wrote:
471,475c604,611
<     '--auronly') auronly='1' ;;
<     '--devel') devel='1' ;;
<     '--skipinteg') MAKEPKGOPTS="--skipinteg" ;;
<     '--') shift ; packageargs+=("$@") ; break ;;
<     -*) echo "packer: Option \`$1' is not valid." ; exit 5 ;;
---
>     '-a'|'--auronly') auronly='1' ;;
>     '--devel') devel='1' ;;
>     '--skipinteg') MAKEPKGOPTS+=("--skipinteg") ;;
>     '--cleandeps'| '-c') cleandeps='1' ;;
>     '--version'| '-v') echo -n "Meric - $VERSION" ;;
>     '--skip-repo') skipped_repos="$2" ; skip_repo='1' ; shift ;;
>     '--') shift ; packageargs+=("$@") ; break ;;
>     -*) echo -e "${COLOR7}$ERROR :$ENDCOLOR $ERROR9" ; exit 5 ;;

MAKEPKGOPTS= is different.  Possible bug?
Its the only place where the variable gets set.


234c322
<   echo "${PKGURL}$(jshon -Q -e results -e URLPath -u < "$tmpdir/$1.info")"
---
>   echo "${PKGURL}$(jshon -e results -e URLPath -u < "$tmpdir/$1.info")"

-Q option

Thank you for interesting in. MAKEPKGOPTS is indeed different and it is not a bug but a feature to allow use of Makepkg options from meric.conf


But you' re right. Somehow i missed -Q option in pkglink function. Will update git with this. Thanks for your feedback!


Say what you mean, mean what you say

Offline

#4 2012-06-12 23:16:12

tarakbumba
Member
From: Turkiye
Registered: 2008-07-17
Posts: 72

Re: Meric -- Another package helper (packer fork)

New release:
* Added: ability to build packages from local PKGBUILD (meric -U)
* Added: ability to sign packages with gpg-key (meric -S --sign <package>)
* Added: ability to copy tarballs to 'SRCPKGDEST' specified in '/etc/makepkg.conf' (meric -S --auronly --keeptar <package>)
* Added: ability to use bash-completion
* Added: ability to use zsh-completion
* Fixed: Prompt dialog bug while translations are used
* Most code replacement, tidy code...

Also, now users may use "-a" action instead of "--auronly" for AUR only actions. (meric -Sa <AUR package>)
Please read README.md file for more information.


Most of those changes ( --keeptar idea, -U, bash-completion and zsh-completion) came from DeedleFake <YissZev@BeckForce.com> <https://github.com/DeedleFake/packer>

You can use meric AUR package to install. Thanks...


Say what you mean, mean what you say

Offline

#5 2012-07-25 12:48:45

rEnr3n
Member
Registered: 2012-07-25
Posts: 29

Re: Meric -- Another package helper (packer fork)

Can you also include other pacman operations such as -Q and -R?


180 documentaries to expand your mind - http://higherperspectives.com/documentaries/

Offline

Board footer

Powered by FluxBB