FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-10-2008, 05:58 AM
Mark Constable
 
Default Split installs for makepkg

I'd like any opinion about doing split installs using the
method outlined below. Is this a reasonable approach or am
I missing something obvious?

It seems to work okay and does not involve any hacking or
patching of /usr/bin/makepkg. This example is for building
qt-copy and qt-copy-doc from KDE4 svn trunk using
qt-copy/PKGBUILD as the "parent" PKGBUILD and removing the
build() function from the "child" PKGBUILD.qt-copy-doc and
putting that logic into the parent build_doc() function...

pkgname=qt-copy
pkgver=4.3.3
pkgrel=7
_pkgfqn=qt-x11-opensource-src-$pkgver
... other typical pre build variables

build()
{
... pre make instructions

make || return 1
build_doc
## ie; requires build_examples() + PKGBUILD.qt-copy-examples
#build_examples
make INSTALL_ROOT=$startdir/pkg install || return 1

... post make instructions
}

build_doc()
{
mkdir -p $pkgdir/usr/share/doc/qt
cp -r $srcdir/$_pkgfqn/doc/html/* $pkgdir/usr/share/doc/qt

cd $startdir
makepkg --asroot -R -p PKGBUILD.qt-copy-doc
rm -rf $pkgdir/*
cd $srcdir/$_pkgfqn
}

# ll /home/packages
total 38268
-rw-r--r-- 1 archlinux users 16812720 2008-02-10 16:07 qt-copy-4.3.3-7-x86_64.pkg.tar.bz2
-rw-r--r-- 1 archlinux users 22322007 2008-02-10 16:06 qt-copy-doc-4.3.3-7-any.pkg.tar.bz2

# pacman -Qi qt-copy
Name : qt-copy
Version : 4.3.3-7
URL : http://www.trolltech.com/products/qt
Licenses : GPL
Groups : kdesvn kdesvn-all
Provides : qt=4.3.3
Depends On : libpng libjpeg libxi libxcursor libxinerama mesa fontconfig libxrandr dbus glib2
Optional Deps : None
Required By : poppler-qt qca qimageblitz qt-copy-doc soprano strigi tapioca-qt telepathy-qt
Conflicts With : qt
Replaces : None
Installed Size : 45785.92 K
Packager : Mark Constable <markc@renta.net>
Architecture : x86_64
Build Date : Sun 10 Feb 2008 16:07:08 EST
Install Date : Sun 10 Feb 2008 16:07:13 EST
Install Reason : Explicitly installed
Install Script : No
Description : The QT gui toolkit

# pacman -Qi qt-copy-doc
Name : qt-copy-doc
Version : 4.3.3-7
URL : http://www.trolltech.com/products/qt
Licenses : GPL
Groups : None
Provides : qt-doc
Depends On : qt>=4.3.3
Optional Deps : None
Required By : None
Conflicts With : qt-doc
Replaces : None
Installed Size : 56325.43 K
Packager : Mark Constable <markc@renta.net>
Architecture : any
Build Date : Sun 10 Feb 2008 16:06:56 EST
Install Date : Sun 10 Feb 2008 16:15:09 EST
Install Reason : Explicitly installed
Install Script : No
Description : The QT gui toolkit documentation

--markc

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 
Old 02-12-2008, 08:10 PM
"Roman Kyrylych"
 
Default Split installs for makepkg

2008/2/10, Mark Constable <markc@renta.net>:
> I'd like any opinion about doing split installs using the
> method outlined below. Is this a reasonable approach or am
> I missing something obvious?
>
> It seems to work okay and does not involve any hacking or
> patching of /usr/bin/makepkg. This example is for building
> qt-copy and qt-copy-doc from KDE4 svn trunk using
> qt-copy/PKGBUILD as the "parent" PKGBUILD and removing the
> build() function from the "child" PKGBUILD.qt-copy-doc and
> putting that logic into the parent build_doc() function...

IIRC something like this was proposed by Alessio AKA mOLOk.
You can find it in ML archives or bugtracker.

--
Roman Kyrylych (*оман Кирилич)
_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 09:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org