Hi,
makedepends should only contain dependencies that are required to
build tha package but not to run the resulting application and
therefore should not contain dependencies already specified in
depends.

You can find all the informations you need on PKGBUILDs on the wiki:
https://wiki.archlinux.org/index.php/PKGBUILD

Apart from that the suggestions look good and I will apply them as
soon as 1.2 is released.

Thanks.

On Thu, Jan 5, 2012 at 2:18 PM, Martin Erik Werner
<[email protected]> wrote:
> Hi, with the new (hopefully soonish) release of Red Eclipse 1.2 the
> PKGBUILD for it could use some modification.
>
> I've included here my suggestion for the new version, which should work
> once 1.2 is released (though incompatible with current 1.1). I'm using
> something similar currently for the redeclipse-svn package at
> https://aur.archlinux.org/packages.php?ID=38550 .
>
> I am not completely sure how the (make)depends should be
> organized/duplicated, are there any clear guidelines for that anywhere?
>
>
> ### $ cat PKGBUILD
> # Contributor: Massimiliano Torromeo <[email protected]>
> # Updater: Martin Erik Werner ("arand") <[email protected]>
>
> pkgname=redeclipse
> pkgver=1.2
> pkgrel=1
> pkgdesc="A single-player and multi-player first-person ego-shooter,
> built as a total conversion of Cube Engine 2"
> arch=('i686' 'x86_64')
> url="http://redeclipse.net";
> license=('custom' 'CC-BY-SA-3.0' 'ZLIB' 'MIT')
> depends=('sdl_image' 'libgl' 'sdl_mixer')
> makedepends=('mesa' 'imagemagick' 'sdl_image' 'libgl' 'sdl_mixer')
> source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}_
> ${pkgver}_linux_bsd.tar.bz2)
>
> md5sums=('replaceme')
>
> build() {
>        cd "$srcdir/$pkgname/src"
>        make
> }
>
> package() {
>        cd "$srcdir/$pkgname"
>
>        make -C DESTDIR="$pkgdir" prefix=/usr system-install
>
>        install -Dm644 license.txt
> "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
>        install -Dm644 trademark.txt
> "$pkgdir/usr/share/licenses/$pkgname/TRADEMARK"
> }
> ###
>
> Thanks
> --
> Martin Erik Werner <[email protected]>

Reply via email to