[tur-users] OR/XOR in PKGBUILD depends-array
Benjamin Kircher
benjamin.kircher at gmail.com
Fri Apr 6 10:50:17 EDT 2007
Yupp, my mistake *ashamed*... sometimes I feel so terribly tired:{
Here is the corrected 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')
_pkgfqn=TiffIO-130e
# 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/$_pkgfqn.tgz)
noextract=()
md5sums=('b720db8385656d15fb0994005192ec72')
build() {
qt-config qt4
source /etc/profile
cd $startdir/src/$_pkgfqn/
qmake TiffIO_DBG.pro
make || return 1
make INSTALL_ROOT=$startdir/pkg install
cd $startdir/pkg/opt/qt4/plugins/imageformats/ && mv
libTiffIO-debug.solibtiffio_debug.so
}
Thanks for your reply.
Benjamin Kircher
2007/4/6, Sergej Pupykin <ps at lx-ltd.ru>:
>
>
> 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
>
> _______________________________________________
> tur-users mailing list
> tur-users at archlinux.org
> http://archlinux.org/mailman/listinfo/tur-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://archlinux.org/pipermail/tur-users/attachments/20070406/e780186f/attachment-0001.html
More information about the tur-users
mailing list