[aur-general] How to contribute to AUR?
Ralf Mardorf
info.mardorf at rocketmail.com
Wed Jun 26 13:48:39 EDT 2013
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