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