[aur-general] How to contribute to AUR?
Doug Newgard
scimmia22 at outlook.com
Wed Jun 26 13:58:53 EDT 2013
In this case, it also really needs updated to Pacman 4.1 format and a pkgver function added.https://wiki.archlinux.org/index.php/VCS_PKGBUILD_GuidelinesThere are some examples there of how to do a pkgver function, as well as information about just using git as a normal source, _gitroot and _gitname are no longer used.
> From: info.mardorf at rocketmail.com
> To: aur-general at archlinux.org
> Date: Wed, 26 Jun 2013 19:48:39 +0200
> Subject: [aur-general] How to contribute to AUR?
>
> 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
>
More information about the aur-general
mailing list