Re: [aur-general] PKGBUILD for prospective Red Eclipse 1.2
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 <martinerikwerner@gmail.com> 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 <massimiliano.torromeo@gmail.com> # Updater: Martin Erik Werner ("arand") <martinerikwerner@gmail.com>
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 <martinerikwerner@gmail.com>
Hi, thanks for picking it up! So it is the case that the depends() should be treated as included in the makedepends()? RE does need libsdl in order to compile, AND in order to run. E.g. on Debian, the build-depends is libsdl-mixer1.2-dev, and the runtime depends is libsdl-mixer1.2 But in a PKGBUILD I only need to specify the runtime depend? The PKGBUILD documentation could be interpreted to imply this, but in that case I don't feel it makes a very good job in doing so :) -- Martin Erik Werner <martinerikwerner@gmail.com> On Thu, 2012-01-05 at 14:26 +0100, Massimiliano Torromeo wrote:
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 <martinerikwerner@gmail.com> 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 <massimiliano.torromeo@gmail.com> # Updater: Martin Erik Werner ("arand") <martinerikwerner@gmail.com>
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 <martinerikwerner@gmail.com>
On Thu, Jan 5, 2012 at 3:30 PM, Martin Erik Werner <martinerikwerner@gmail.com> wrote:
Hi, thanks for picking it up!
So it is the case that the depends() should be treated as included in the makedepends()? RE does need libsdl in order to compile, AND in order to run.
Correct.
E.g. on Debian, the build-depends is libsdl-mixer1.2-dev, and the runtime depends is libsdl-mixer1.2
In Arch there are no -dev packages; All the libs also include the headers.
But in a PKGBUILD I only need to specify the runtime depend?
The PKGBUILD documentation could be interpreted to imply this, but in that case I don't feel it makes a very good job in doing so :)
participants (2)
-
Martin Erik Werner
-
Massimiliano Torromeo