[PATCH] Adapt to recent style changes for PKGBUILDs

This patch modifies cabal2arch to adapt to recent changes in makepkg : * the "|| return 1" are not needed, the build function exits automatically when encountering errors * the build() function is now split into the build() function and the package() function, such that build() never touches $pkgdir. -- Rémy.

On Mon, Oct 11, 2010 at 12:23, Rémy Oudompheng
This patch modifies cabal2arch to adapt to recent changes in makepkg : * the "|| return 1" are not needed, the build function exits automatically when encountering errors * the build() function is now split into the build() function and the package() function, such that build() never touches $pkgdir.
Excellent, this has been on my todo-list for a while now. I'm glad you beat me to it. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

magnus:
On Mon, Oct 11, 2010 at 12:23, Rémy Oudompheng
wrote: This patch modifies cabal2arch to adapt to recent changes in makepkg : * the "|| return 1" are not needed, the build function exits automatically when encountering errors * the build() function is now split into the build() function and the package() function, such that build() never touches $pkgdir.
Excellent, this has been on my todo-list for a while now. I'm glad you beat me to it.
Please feel free to fork the repo (maybe store it in the group directory on code.haskell.org -- or even better, on github or patch-tag). -- Don

On 11/10/10 18:46, Don Stewart wrote:
magnus:
On Mon, Oct 11, 2010 at 12:23, Rémy Oudompheng
wrote: This patch modifies cabal2arch to adapt to recent changes in makepkg : * the "|| return 1" are not needed, the build function exits automatically when encountering errors * the build() function is now split into the build() function and the package() function, such that build() never touches $pkgdir.
Excellent, this has been on my todo-list for a while now. I'm glad you beat me to it.
Please feel free to fork the repo (maybe store it in the group directory on code.haskell.org -- or even better, on github or patch-tag).
I've imported both the repositories to git and pushed them to github: http://github.com/archhaskell/archlinux http://github.com/archhaskell/cabal2arch /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
participants (3)
-
Don Stewart
-
Magnus Therning
-
Rémy Oudompheng