[arch-haskell] Creating binary and doc from the same PKGBUILD

Magnus Therning magnus at therning.org
Sat Oct 12 07:35:19 UTC 2013


I think it'd be worthwhile to provide packages with haddock-generated
documentation for all haskell packages.  However, I'm not convinced
that the docs should be packaged with the binary components of the
package.  I've been experimenting with "split packages" (in pacman as
of version 3.3) as a means of building both packages from the same
PKGBUILD.

I've used dataenc for my experiments and have arrived at something
that makes some sense, but I'd like comments and feedback before I
start coding it into cabal2arch.  I've attached the modified PKGBUILD
and the added .install file for the -doc package.

I believe the same approach could be taken to providing packages with
profiling support as well.

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PKGBUILD
Type: application/octet-stream
Size: 1635 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20131012/17d2dff9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haskell-dataenc-doc.install
Type: application/octet-stream
Size: 342 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20131012/17d2dff9/attachment-0001.obj>


More information about the arch-haskell mailing list