You are not logged in.

#1 2006-12-28 13:18:25

rsamurti
Member
From: Mysuru, India
Registered: 2006-11-30
Posts: 29

How do I retain /usr/info and /usr/doc in my packages?

Hello,

Some programs like GNU Octave have their on-line help as a texinfo file. To use this, I need to install the related files in /usr/info. But in Arch /usr/info is not present.

How do I use texinfo so that info files are displayed properly?

I also need /usr/doc directory where some programs keep their documentation.
How to do this?


Thanks for your help.


Anand

Offline

#2 2006-12-28 13:39:50

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: How do I retain /usr/info and /usr/doc in my packages?

Arch strips the /usr/doc and /usr/info directories from the packages. If you really want them for some package, you can change the PKGBUILD, by including this line:

options=('keepdocs')

and recomple the package.

Offline

#3 2006-12-28 21:17:03

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,013

Re: How do I retain /usr/info and /usr/doc in my packages?

Another option is to make a separate package that only holds the documentation, so users can choose if they want it themselves.

Here's an example PKGBUILD from AUR

# Contributor: Vinay S Shastry (vinayshastry@gmail.com)
pkgname=qt4-doc
pkgver=4.2.1
pkgrel=1
pkgdesc="The QT gui toolkit documentation."
url="http://www.trolltech.com/products/qt/index.html"
_pkgfqn=qt-x11-opensource-src-$pkgver
depends=('qt4>=4.2.1')
source=(ftp://ftp.trolltech.com/qt/source/$_pkgfqn.tar.gz)
md5sums=('2ab1c88084f55b94809f025a8503bf18')
options=('KEEPDOCS')

build() {
  cd $startdir/src/$_pkgfqn
  mkdir -p $startdir/pkg/opt/qt4/
  cp -r doc $startdir/pkg/opt/qt4/
}

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2007-01-02 15:54:49

skale
Member
From: Atlanta, GA
Registered: 2006-08-04
Posts: 146

Re: How do I retain /usr/info and /usr/doc in my packages?

Or, uncomment the line concerning documents in makepkg.conf.

Offline

Board footer

Powered by FluxBB