[arch-haskell] Haskell Platform 2009.2.0.2

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


On Thu, Jul 30, 2009 at 7:39 AM, Xyne<xyne at archlinux.ca> wrote:
> On Wed, 29 Jul 2009 10:44:34 -0700
> Don Stewart <dons at galois.com> wrote:
>
>> Hey all,
>
>> Here's a PKGBUILD,
>>
>>     # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
>>     # Package generated by cabal2arch 0.5.3
> <snip />
>>     build() {
>>         cd $startdir/src/haskell-platform-2009.2.0.2
>>         runhaskell Setup configure --prefix=/usr || return 1
>>         runhaskell Setup build                   || return 1
>>         runhaskell Setup register   --gen-script || return 1
>>         runhaskell Setup unregister --gen-script || return 1
>>         install -D -m744 register.sh   $startdir/pkg/usr/share/haskell/$pkgname/register.sh
>>         install    -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh
>>         runhaskell Setup copy --destdir=$startdir/pkg || return 1
>>         install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
>>     }
>
> Hi Don,
>
> This reminded me of a question that came to mind today when I was browsing Haskell packages in the AUR:
>
> Would it be difficult to update cabal2arch to use "$srcdir" and "$pkgdir" instead of "$startdir/src" and "$startdir/pkg", respectively?
>
> It works fine the way it is right now, but the other way is recommended to ensure future compatability. You can confirm this by checking "man PKGBUILD". It seems that it would be better to change it now than wait for issues to arise. I'm hoping that it would only require a simple substitution.
>
> Also, thanks for this tool and all the other Haskell packages. I'm slowly learning Haskell and I hope to take full advantage of them in due time (and maybe even contribute some tools if I can).

I have already sent Don a patch for that, but it doesn't seem to have
made it into cabal2arch yet.  Maybe it would have been better to send
those patches to this list instead of directly to Don...

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe



More information about the arch-haskell mailing list