Package Details: pure-gen 0.25-2

Git Clone URL: https://aur.archlinux.org/pure-gen.git (read-only, click to copy)
Package Base: pure-gen
Description: A C interface generator for Pure
Upstream URL: https://agraef.github.io/pure-lang/
Licenses: custom
Groups: pure-complete, pure-util
Submitter: asitdepends
Maintainer: pure-aur
Last Packager: pure-aur
Votes: 4
Popularity: 0.000000
First Submitted: 2010-04-03 20:23 (UTC)
Last Updated: 2022-08-07 22:08 (UTC)

Latest Comments

Rufflewind commented on 2021-06-01 00:12 (UTC)

I recently learned of the comment https://www.reddit.com/r/linux/comments/9emwtu/arch_linux_ama/efjnyd6/ , which describes a simpler way of building static packages without relying on the ghc-pristine trick I maintain. Therefore, I'm wondering whether downstream uses of ghc-pristine could be migrated in favor of the simpler approach. Would something like this work for your package?

--- PKGBUILD
+++ PKGBUILD
@@ -9,14 +9,17 @@ arch=("i686" "x86_64")
 license=('custom')
 url="https://agraef.github.io/pure-lang/"
 depends=('pure')
-makedepends=('ghc' 'ghc-static' 'ghc-pristine' 'cabal-install' 'alex' 'happy')
+makedepends=('ghc' 'ghc-static' 'cabal-install' 'alex' 'happy')
 groups=(pure-complete pure-util)
 source=("https://github.com/agraef/pure-lang/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
 sha1sums=('205d18ee7fff502f90b0fa741eabb52c8c5fd72b')

 build() {
    cd $srcdir/$pkgname-$pkgver
-   export PATH=/usr/share/ghc-pristine/bin:$PATH
+   global_package_db=$(ghc --print-global-package-db | sed 's/\(package\.conf\.d\)$/static-\1/')
+   HOME=cabal cabal user-config update
+   sed -i "s|-- \(ghc-pkg-options:\).*|\1 --global-package-db=${global_package_db}|" cabal/.cabal/config
+   sed -i "s|\\\$(MAKE) all GHCFLAGS=-static |\\\$(MAKE) all GHCFLAGS=\"-static -clear-package-db -package-db ${global_package_db} -user-package-db\" |" Makefile
    make PUREC_FLAGS=-mcpu=generic maintainer-build
 }

aggraef commented on 2013-09-17 07:07 (UTC)

Could you please pull the latest PKGBUILD from https://bitbucket.org/purelang/pkgbuild? Thanks.

aggraef commented on 2013-09-04 11:39 (UTC)

pure-gen 0.16 is out now. dump-ast should now compile cleanly out of the box, so the patch included in this build isn't needed any more.