You are not logged in.

#1 2012-05-01 13:15:31

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Making my First AUR Package

Okay; so I'm attempting to make my first AUR package. Just wondering if I'm on the right track... I've got an AUR account now and below is my current PKGBUILD. I know I still need to generate the md5 sums, but otherwise do things look ok? Thanks!

# Maintainer: Anthony Karam <karam.anthony.k@gmail.com>
pkgname=yellowcot
pkgver=1.2.5
pkgrel=1
pkgdesc="a free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator"
arch=('any')
url="http://code.google.com/p/yellowcot"
license=('GPL')
groups=()
depends=('imagemagick', 'qt')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('http://yellowcot.googlecode.com/files/$pkgname-$pkgver.tar.bz2')
noextract=()
md5sums=() #generate with 'makepkg -g'

package() {
  cd "$pkgname-$pkgver"
  make
  make install
}

Offline

#2 2012-05-01 13:46:32

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Making my First AUR Package

Just follow https://wiki.archlinux.org/index.php/Creating_Packages (and the part about build/package functions in particular). And you can leave out variables you don't need/use.

Offline

#3 2012-05-01 18:37:24

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Making my First AUR Package

Get rid of the empty variables (`install=`, `replaces=()`, etc.). Also, building (make) should be done in a the build funciton, not package.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#4 2012-05-02 09:43:34

GordonGR
Member
From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 276

Re: Making my First AUR Package

Also, you don't need a comma between the dependent packages, so that line should be

depends=('imagemagick' 'qt')

Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.

“No one without the knowledge of geometry may enter.“ Plato.

Offline

#5 2012-05-03 20:08:39

DrZaius
Member
Registered: 2008-01-02
Posts: 193

Re: Making my First AUR Package

yellowcot is GPL3 (or any later version), so I assume you should use:

license=('GPL3')

Offline

Board footer

Powered by FluxBB