j'ai besoin de ufraw pour transformer les fichiers RAW de mon appareil photo en jpg. Toutefois j'ai besoin de la
version cvs. C'est pour ça que j'ai créé un PKGBUILD, mais comme c'est mon premier, il y a pas mal
de trucs qui m'échappe. Je vais donc en profiter au fur et à mesure de l'avancement pour solliciter
ceux qui ont de l'expérience. Voilà à quoi ressemble mon PKGBUILD:
Code : Tout sélectionner
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from CVS sources.
# Maintainer: Your Name <youremail@domain.com>
pkgname=ufraw-cvs
pkgver=20121028
pkgrel=1
pkgdesc="Standalone or gimp plugin converter for raw files"
arch=('i686', 'x86_64')
url="http://ufraw.sourceforge.net"
license=('GPL2')
depends=('gtkimageview', 'lcms>=1.13', 'lensfun', 'exiv2')
makedepends=('cvs', 'automake')
optdepends=('gimp: to use the gimp import plugin for raw images'
'cinepaint: to use the cinepaint plugin'
'libtiff: to create TIFF images'
'libjpeg-turbo: to create JPEG images'
'libpng: to create PNG images'
'libcfitsio: to create FITS images'
'zlib: to read gzipped RAW files'
'bzip2: to read bzipped RAW files')
provides=('gimp-ufraw')
conflicts=('gimp-ufraw')
_cvsroot=":pserver:anonymous@ufraw.cvs.sourceforge.net:/cvsroot/ufraw"
_cvsmod="ufraw"
build() {
cd "$srcdir"
msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
if [[ -d "$_cvsmod/CVS" ]]; then
cd "$_cvsmod"
cvs -z3 update -d
else
cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
cd "$_cvsmod"
fi
msg "CVS checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_cvsmod-build"
cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
cd "$srcdir/$_cvsmod-build"
#
# BUILD HERE
#
./autogen.sh
./configure --prefix=/usr \
--enable-extras \
--enable-mime \
--enable-dst-correction \
--enable-contrast || return 1
make || return 1
}
package() {
cd "$srcdir/$_cvsmod-build"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
le répertoire de mon PKGBUILD et voilà ce qui se passe:
Code : Tout sélectionner
$ makepkg
==> Determining latest cvs revision...
-> Version found: 20121028
==> Making package: ufraw-cvs 20121028-1 (Sun Oct 28 14:35:20 CET 2012)
==> Checking runtime dependencies...
==> Missing Dependencies:
-> gtkimageview,
-> lensfun,
==> Checking buildtime dependencies...
==> Missing Dependencies:
-> cvs,
==> ERROR: Could not resolve all dependencies.
fois que les dépendances étaient installées et que les noms étaient justes dans le PKGBUILD. Il doit y
avoir un truc tout simple qui m'échappe. Pour créer le PKGBUILD je me suis appuyé sur plusieurs articles
du wiki, mais là je ne vois plus où chercher.