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 <[email protected]>
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

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!

Similar Messages

  • How to import one package in another package in java

    HI ,
    I want call a class which is located in package pckage1 into another package package2s class..
    could any one help me on this...
    realy that would be appricateble

    Use import package.ClassName;

  • What can I do about paying for Office from a commercial store, and itunes charging $100 for smart converter, ms office package and pack for ms office $41.99? It surely looks like double dipping

    Hi folks, I am puzzled when looking at my itunes account. I bought a store office 365 package for $100, and in the process of installing it, somehow ended up with fees for smart converter, ms office package and pack for ms office, totalling another $90 from itunes. Isn't this double dipping and if so, how do I go about a refund? Thanks jby

    Well, MS Office 2004 is available for the Mac and being a user of both the Windows and Mac versions, I think that the Mac version has a slight edge. The only downside is that it does not come with MS Access so if you use that then you have to stay with the PC version.
    But... if you are set on mainly using Windows then paying a substantial premium just for a computer that looks good rather than on the fact that it runs OSX and hence great packages such as iLife etc is probably a waste. This is especially true when you have to remember that Apple will not give any technical support to users running Windows.. nil, nada, nowt! Likewise, Microshaft (sorry Microsoft) also seem unwilling to give support at this time since (for some strange reason) they don't like the idea of Windows on a Mac.
    As I see it, the main reason for Apple to release the ability to run Windows was to:
    a> Produce an 'official' version rather than have an unauthorised version 'in the field' which if problematic, could give Apple a bad name.
    b> Give people who would like to have a Mac but have the occassional program which has to be run under Windows, the ability to switch to a Mac.
    Option b was the reason why I switched from years on a PC to the Mac.

  • Moving message bundle (i18n) to another package within NetBeans...

    Hi,
    I'm using the NetBeans GUI builder (matisse) to create an internationalized (i18n) swing application.
    My bundle properties file (which contains all the internationalized labels and so on) is located in a package on the classpath. Now I want to move the bundle to another package - can this be done in an easy (automatic) fashion throughout the IDE because a lot of java classes (forms) use the bundle.
    BTW, find and replace within the editor does not work because all the gui building stuff is marked as protected and cannot be edited and editing each label separately with the internationalization wizard would take me hours...
    Any help would be greatly appreciated
    - Stephan

    Of course... but my java files would need some refactoring because there is a lot of code like that...
    setTitle(java.util.ResourceBundle.getBundle("
        com/foo/bar/bundle/Messages").getString("frame1.title"));.. which refers to a message bundle in the specified package - when I move the message bundle to another package all the references in the java files (like the example above) have to be updated.
    Unfortunately 'Find and Replace' in the editor doesn't work because it is generated gui code and marked as protected.
    So is there a possibility to automatically update all the references in the java files?
    Thanks a lot
    - Stephan

  • Can I call a function in another package?

    Dear all,
    Can I call a function in another package?
    Say I have package A, and package B.
    Is it possible for me to call a function in inside package A, within a function inside package B?
    If yes, what's the syntax.
    Thanks in advance!

    The variable in the calling package that will receive the value of the function in the other package needs to be defined based on that type in the other package directly:
    sql>create or replace package pkg_a
      2  is
      3    type testTable is table of varchar2(10) index by binary_integer;
      4 
      5    function f_a return testTable;
      6  end;
      7  /
    Package created.
    sql>create or replace package body pkg_a
      2  is
      3    function f_a
      4      return testTable
      5    is
      6      v_table testTable;
      7    begin
      8      v_table(1) := 'One';
      9      v_table(2) := 'Two';
    10      return v_table;
    11    end; 
    12  end;
    13  /
    Package body created.
    sql>create or replace package pkg_b
      2  is
      3    procedure p_b;
      4  end; 
      5  /
    Package created.
    sql>create or replace package body pkg_b
      2  is
      3    procedure p_b
      4    is
      5      v_table pkg_a.testTable;  -- this variable has to be based on the type in pkg_a
      6    begin
      7      v_table := pkg_a.f_a;
      8      for i in 1..v_table.count loop
      9        dbms_output.put_line( v_table(i) );
    10      end loop;
    11    end;
    12  end; 
    13  /
    Package body created.
    sql>exec pkg_b.p_b
    One
    Two
    PL/SQL procedure successfully completed.

  • USage of import java.util.* & using another package

    When we use import java.util.*; from where does JAVA take the class that are related to util, when I did search for "util" in my machine, I got about 50 results for folders named util and also some where in a folder called "java" when I opened it it did not have the classes, that I was expecting. So I am not clear where does it get the class files from. This is not only for this but for any import commands like import java.io.*;
    When we get another package or source code which was written in java and want to use it in our code where do we have keep the files ? eg. i have the java code that i m writing in c:\java then do I put all the downloaded related files in that folder and then run the code ? or i keep a folder inside java folder and then import them into my code ?
    please do advice.
    Thanks in advance.

    When we use import java.util.*; from where does JAVA
    take the class that are related to util,It means when you use a classname in your code, and that classname is neither in the same package as the class you're writing, nor imported specifically by classname, that it will search for it.
    Where it searches is every folder called util whose parent folder is called java which in turn is at the root level of one of the classpath elements. That is, if classpath contains "A" and "B", and you refer to a class called "Foo", then it will look for "A/java/util/Foo.class" and "B/java/util/Foo.class".
    search for "util" in my machine, I got about 50
    results for folders named util and also some where in
    a folder called "java" when I opened it it did not
    have the classes, that I was expecting. So I am not
    clear where does it get the class files from. This is
    not only for this but for any import commands like
    import java.io.*; All the java.* and javax.* and whatever else it part of the core API is in rt.jar, which lives inside the Java distribution. Classpath elements can be directories or jar files or zip files.

  • Instantiating a class from another package

    Hi,
    I have two packages, say "framework" and "impl" -
    framework package (framework.jar)
    - contains base classes
    - contains factories to instantiate concrete classes
    - bundled in <product>.ear
    impl package (impl.jar)
    - contains implementation(concrete) classes
    - compile time dependency on framework.jar
    - bundled in <product>.ear
    I could successfully compiled and build <product>.ear which contains both the jars. The ear gets deployed successfully.
    PROBLEM
    Now, whenever a factory class (part of framework package) tries to instantitate an impl class (part of impl package) using -
    Class.forName(impl.ConcreteClassName OR fully_qualified_concrete_class_name).newInstance();
    It throws "classNotFoundException". It is not able to locate the concrete class.
    So, my question is how can i instantiate a class using its fully qualified name(package.classname) from another package ?
    Thanks.

    909219 wrote:
    PROBLEM
    Now, whenever a factory class (part of framework package) tries to instantitate an impl class (part of impl package) using -
    Class.forName(impl.ConcreteClassName OR fully_qualified_concrete_class_name).newInstance();
    It throws "classNotFoundException". It is not able to locate the concrete class.This sound like a classpath problem. Check your ear's manifest.
    BTW:
    Shouldn't the framework better use ServiceRegistry to load implementations?
    bye
    TPD

  • Use a method from another class in another package?

    How can I use a method from another class in another package?

    WhiteJ wrote:
    What do you mean by "new keyword?" You posted this previously:
    I tried that, it seems to not be working. I want to use the constructor from the other class. I imported it, using this piece of code:
    import components.FileChooser;
    components.FileChoser();
    Typically if I am going to call a constructor on a class called Fubar, I'd use new to create a new object:
    Fubar myFubar = new Fubar();Incidently, is it a simple typo in your post or are you trying to use a FileChoser object when it should be FileChooser?

  • A package that "patches" another package

    I'd like to make a PKGBUILD for usb-rndis-lite v0.11. Usb-rndis-lite contains files that should replace some files from 'kernel26' package. Is it right when one package replaces files from another package? If so, what is the right way to do that?
    The point is that USB RNDIS driver, included in current 2.6.26 kernel is either outdated or buggy, so sometimes it needs to be replaced by SynCE's usb-rndis-lite. Unfortunately that driver is a part of kernel26 package and cannot be separately removed.

    Mr.Cat wrote:Nothing would prevent me from doing this, but that would be the "wrong way", I suppose. And you've mentioned one of the reasons - possible problems with correct package removal. Another problem I see - is that when kernel26 is updated - my package's files would be owerwritten.
    Exactly. Pretty ugly solution, although possible. In the install script, you can specify an uninstall function, so theoretically you can backup the original driver on install, and restore on uninstall, with a check if it hasn't been updated meanwhile.
    UPD:
    bender02 wrote:There's a special directory where you can put your patched/updated version of a driver, and then modprobe/insmod would load that new version, when the driver is requested.
    Thanks, worked for me.
    UPD:
    I've submitted a PKGBUILD for rndis-usb-lite (v0.11) to unsupported: http://aur.archlinux.org/packages.php?ID=20336.
    I'm glad it worked.

  • Can I get another package to Russia?

    Hey there.
    I call lot to Russia now, and my current 60 min + 15 min is too little, so I uploaded some Saldo to account and this is now over. Is there really no possible to get another 60 min Russia package to mobile phones? So I could use my 75 minutes I paid for these and when this all over, another 60 min I would pay every month with your month fee to this as long as I need more voice than 75 min. My previous package was 120 min + 30 min free as year sub, but when it was over I called a lot less and now my call needs are more. Is there really no way to add another package to SAME country or update my current to 120 min + 30 min free?
    Let me explain, I dont want new account for another sub as it is hard for me to change accounts. I need two packages right now to my account to the same country, is this possible? When I try to get another package to Russia, it tels me that there is already 75 min package to Russia and if I want to get this 60 min one, it will avtivate AFTER my current is over and that's a long wait, as it ends after next summer.
    Or is onlyone option skype saldo?? For over limits voice.
    Thank you and sorry for my bad english.

    Got answer.
    If you purchase same amount of voice, it activates only when your subsription is over. If you get another amount of voice, different one, it activates as soon as your current month minutes are over. So you can have for example for Russia 60 min + 15 min if year sub and 120 min package by month.

  • Executing another class from another package with a click of a button

    package language;
    textfield_4 = new JTextField();
    getContentPane().add(textfield_4);
    button_10 = new JButton("Open");
        getContentPane().add(button_10);
        button_10.addActionListener(new java.awt.event.ActionListener()
          public void actionPerformed(ActionEvent e)
            String cmd = "notepad.exe";
            String path = textfield_4.getText();
            try
              Runtime.getRuntime().exec(cmd + " \"" + path + "\"");
            catch (IOException ex)
              ex.printStackTrace();
        button_12 = new JButton("Run");
        getContentPane().add(button_12);From the codes above, what i intended to do is when clicking the "Run" button, it will pass the values from textfield_4 to another class in another package thus, executing the class with the value of textfield_4. What are the steps to do that? If possible, please insert sample codes. Thank you.

    import  anyPackage.AnotherClass;
    button_12.addActionListener(new ActionListener() {
      AnotherClass ac = new AnotherClass();
      ac.execute(textfield_4.getText());
    });Is that what you wanted?

  • Can I create another package for another module?

    Hi,
    I am doing a project in NetBeans.
    I used a JFrame with Menu and a JDesktopPane with five JInternalFrames for my I module.Now I first module is finished.
    My designing and coding are in Package Javaapp1.
    For II module I have to create another JDesktopPane with five jInternalFrames.
    If I use the same Javaapp1 package for II Module my coding is very large and difficult to trace.
    can I create another package Javaapp2 for II module and import
    in my first package?
    if it is possible? please give me few lines about this.
    Thank you so much.
    Meena.

    Hi,
    Thank you so much for your reply.
    I understand what you mean.
    I am developing only one project not two many.
    But I have four modules in my project.So I try to the concept of package.
    In NetBeans I first create one project named Javaapp1.
    It automatically comes under the name Package Javaapp.
    In this I finished my first module.
    Now I want to develop second module.To avoid confusion in coding I need to create second module in different package.
    So I create another project Javaapp2.It comes under the name
    Package Javaapp2.I develop II module here.
    Then I try to import Javaapp2 in Javaapp1.I got the error "Package Javaapp1 doesnot exist".Thenonly i add needed jar file(Javaapp2.jar) into my project.Now there is no error.
    You told me that "The Above Approch is for when we create more than one project and take something from one to other".
    But I donot know how can I create another package without creating another project and without including the jaf files.
    I donot know is there any way to do.
    I am also have a look at netBeans.org.
    Can I continue with this?
    will you please comment on my lines.That should be useful to me to get a idea.
    Thank you so much.
    Meena.

  • Calling package from another package

    Hi gurus,
    Quick question
    Say i m in user1 schema.
    I want to call package from another package in the same schema. So do i need to grant permission to the calling package to call.Thank you!!

    Why don't you test it?
    create or replace package pack2
    is
      procedure t2;
    end;
    Package created.
    create or replace package body pack2
    is
      procedure t2
      is
      begin
       dbms_output.put_line('Inside Pack2 And t2');
      end;
    end;
    Package Body created.
    create or replace package pack1
    is
      procedure t1;
    end;
    Package created.
    create or replace package body pack1
    is
      procedure t1
      is
      begin
        pack2.t2;
        dbms_output.put_line('Inside Pack1 And t1');
      end;
    end;
    Package Body created.
    begin
    pack1.t1;
    end;
    Inside Pack2 And t2
    Inside Pack1 And t1
    Statement processed.
    0.11 secondsRegards.
    Satyaki De

  • SUGGEST:"Installed as a dependency for another package" -What package?

    When we run "pacman -Qi" and the name of a package, ex: xulrunner (dependency of firefox), in the end, this shows up:
    Install Reason : Installed as a dependency for another package
    My suggestion is that it should show what package was it installed as a dependency of. Let me explain better. In this specific example, in my system, xulrunner was installed as a dependency of firefox, so, according to my suggestion, it should show exactly this:
    Install Reason : Installed as a dependency for another package - firefox
    As you can see in bold, my suggestion adds firefox after showing that it was installed as a dependency.
    I hope a Pacman/Arch Linux developer sees this topic and develop that feature,

    Unlikely, tbh. Feature requests should be posted in the bugtracker.
    Also.. the same pacman -Qi output already provides a 'Required By' which tells you which apps depend on the one you're looking at. Not quite the same, I know, but almost.

  • Accesing file in another package

    I am using Netbeans 6.0 and I am currently accessing another text file in another package called "files" like so:
    br = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream("\\files\\"+filename)));This works fine and finds the files when I run the code but it doesn't find the files when I build the jar file and run it separately.
    Any idea what could be happening?

    In a JAR, paths that start with a slash like:
    getResourceAsStream("/a/b/c/d.txt")Start at the "root" of the jar. For this to find the resource, verify that /a/b/c/d.txt is in the JAR.

Maybe you are looking for