[tur-users] OR/XOR in PKGBUILD depends-array
Benjamin Kircher
benjamin.kircher at gmail.com
Fri Apr 6 09:24:11 EDT 2007
2007/4/6, Sergej Pupykin <ps at lx-ltd.ru>:
>
> For optional depends you should write .install file with echos in
> post_install about usage variants (see /var/abs/devel/php/php.install for
> example).
>
> depends line contain only deps that needed to run.
>
> btw, what does namcap say?
>
> BK> How do I implement following?
>
> BK> I want to write a PKGBUILD for TiffIO (
> http://artis.imag.fr/Software/TiffIO/).
> BK> Hence, this piece of software could be used by a Qt3 and Qt4
> application, it
> BK> depends=()-array should include 'qt' AND/OR 'qt4'. But how do I do
> something
> BK> like that?
>
> BK> Looked in the man-pages but found nothing notable. Are there any hints
> from a
> BK> more experienced PKGBUILD-writer?
>
> BK> Thanks in advance,
> BK> Benjamin Kircher
>
Wasn't aware of namcap until now. Thank you for this.
It says:
tiffio W: Dependency included and not needed (qt4)
but in my humble opinion it isn't correct.
Anyway, I only use it for Qt4, so there is no need to flog a dead horse.
PKGBUILD:
# Contributor: Your Name <benjamin.kircher at gmail.com>
pkgname=tiffio
pkgver=1.3.0
pkgrel=1
pkgdesc="TiffIO is a plugin that add TIFF images read/write capabilities to
all Qt3 and Qt4 applications"
arch=('i686')
url="http://artis.imag.fr/Software/TiffIO/"
license=('GPL')
# TiffIO is packaged with its own libtiff source distribution, so there is
no need to include it in the following arrays
depends=('qt4')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
source=(http://artis.imag.fr/Software/TiffIO/SOURCES/TiffIO-130e.tgz)
noextract=()
md5sums=('b720db8385656d15fb0994005192ec72')
build() {
qt-config qt4
source /etc/profile
cd $startdir/src/TiffIO-130e/
qmake TiffIO.pro
make || return 1
make DESTDIR=$startdir/pkg install
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://archlinux.org/pipermail/tur-users/attachments/20070406/b10bc511/attachment.html
More information about the tur-users
mailing list