[aur-general] How to contribute to AUR?

Diego Principe cdprincipe at gmail.com
Wed Jun 26 13:58:24 EDT 2013


I'm the mantainer of whiskermenu (git version)
My PKGBUILD is more sexy
https://aur.archlinux.org/packages/xfce4-whiskermenu-plugin-git/

*Diego*


2013/6/26 Chris “Kwpolska” Warrick <kwpolska at gmail.com>

> On Wed, Jun 26, 2013 at 7:48 PM, Ralf Mardorf
> <info.mardorf at rocketmail.com> wrote:
> > Hi :)
> >
> > I'm new to this list. I'm uncertain, but perhaps I'll maintain audio
> > packages, however, I've to learn how to do it, so I started with a test
> > PKGBUILD for a non-audio app I wanted to test.
> >
> > IIUC what's written at
> > https://wiki.archlinux.org/index.php/Arch_Packaging_Standards the below
> > example needs just the following changes to become a valid PKGBUILD:
> >
> > - I need to remove the # text lines, or should add useful text
> > - remove # Contributor and add # Maintainer with my real name
> > - should add an URL
> > - if it shouldn't build from git/svn... I need to add a checksum
> >
> > *?*
> >
> > Regards,
> > Ralf
> >
> > $ cat /usr/src/whiskermenu/PKGBUILD
> > # text : ###############################################################
> > # text : PKGBUILD for the first time edited on my tablet PC
> > # text : ###############################################################
> >
> > # Contributor : Batpackager <info.mardorf at rocketmail.com>
> >
> > pkgname=xfce4-whiskermenu-plugin-git
> > pkgver=20130626
> > pkgrel=1
> > pkgdesc="Alternate Xfce menu"
> > arch=('i686' 'x86_64')
> > license=('GPL2')
> > makedepends=('git' 'cmake')
> > depends=('xfce4-panel')
> > provides=('xfce4-whiskermenu-plugin')
> > conflicts=('xfce4-whiskermenu-plugin')
> > _gitroot="https://github.com/gottcode/xfce4-whiskermenu-plugin.git"
> > _gitname="xfce4-whiskermenu-plugin"
> >
> > build() {
> >
> >   cd "$srcdir"
> >   msg "Connecting to https://github.com/gottcode..."
> >
> >   if [ -d $_gitname ] ; then
> >     cd $_gitname && git pull origin
> >     msg "The local files are updated."
> >   else
> >     git clone --depth 1 $_gitroot
> >   fi
> >
> >   msg "GIT checkout done or server timeout"
> >   msg "Starting make..."
> >
> >   rm -rf "$srcdir/$_gitname-build"
> >   cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
> >   cd "$srcdir/$_gitname-build"
> >   cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
> >   make
> > }
> >
> > package() {
> >
> >   cd "$srcdir/$_gitname-build"
> >   make DESTDIR=${pkgdir} install
> >
>
> Where did you get this PKGBUILD template from?  It’s outdated as hell.
>  The new fancy way is much different.
>
> Remove _gitroot.  Under _gitname, insert:
>
>     sources=("git://github.com/gottcode/${_gitname}.git")
>     md5sums=('SKIP')
>
> Then remove all the lines in build() before the cmake line, and above it,
> put:
>
>     cd "${srcdir}/${_gitname}"
>
>
> In package(), replace the `cd` line with the above and put quotes
> around ${pkgdir}.  Moreover, you need a closing brace at the end of
> package()
>
> Then, remove the comment lines and put a maintainer comment at the top.
>
> --
> Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
> stop html mail                | always bottom-post
> http://asciiribbon.org        | http://caliburn.nl/topposting.html
>


More information about the aur-general mailing list