You are not logged in.

#1 2007-12-22 15:13:42

scrawler
Member
Registered: 2005-06-07
Posts: 318

specifying doc directory in PKGBUILD

howdy guys,

after makepkg,

==> Removing info/doc files...

So.  That's cool, but I want the docs.  instead of putting them in "/user/share/doc/directory/" can I put them in something like "/opt/doc/directory/"?

If the answer is "yes," I don't know how to do that.  with a *.install file?  Would someone give me a clue, please?

thanks!

Offline

#2 2007-12-22 15:23:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: specifying doc directory in PKGBUILD

Read man PKGBUILD, look for the options array.

Offline

#3 2007-12-22 16:54:17

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: specifying doc directory in PKGBUILD

thanks, that's the ticket.

There is a typo in the man page, though.  In the "docs" section of "options," it says, "If you wish to delete doc and info directories, specify "!docs" in the array."  Shouldn't this read "If you do not wish...?"

Offline

#4 2007-12-22 17:03:02

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: specifying doc directory in PKGBUILD

I spoke too soon.

the options line as I have it had no effect.  Also, I get a warning about not having a licence line even though I have one.   here's the pkgbuild:

pkgname=newlisp
pkgver=9.2.9
pkgrel=1
pkgdesc="newLISP is a LISP like, general purpose scripting language."
url="http://www.newlisp.org"
depends=(glibc)
makedepends=()
conflicts=()
replaces=()
backup=()
licence=('GPL')
arch=('i686')
options=('!docs')
install=
source=(http://newlisp.org/downloads/development/$pkgname-$pkgver.tgz)
md5sums=('17bdd4fdc615fba7d3b31719db5b45e5')
build() {
  cd $startdir/src/$pkgname-$pkgver
  make linux_readline || return 1
  mkdir -p $startdir/pkg/usr/{bin,man,share,opt}
  mkdir -p $startdir/pkg/opt/doc/newlisp
  mkdir -p $startdir/pkg/usr/man/man1
  make bindir=$startdir/pkg/usr/bin mandir=$startdir/pkg/usr/man datadir=$startdir/pkg/usr/share install
}

Offline

#5 2007-12-22 17:54:33

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

Re: specifying doc directory in PKGBUILD

To keep the docs it would be "option=('docs')".

Offline

#6 2007-12-23 00:50:01

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: specifying doc directory in PKGBUILD

Gah!  and I  misspelled "license" too.  How embarrassing.

Thank you.

Offline

Board footer

Powered by FluxBB