diff options
author | Flávio Zavan | 2015-10-17 00:22:11 -0300 |
---|---|---|
committer | Flávio Zavan | 2015-10-17 00:32:14 -0300 |
commit | d93ddd1baa4c6c4e9b4900012e866d43d5949feb (patch) | |
tree | 18c05624d23e2eac3c4fbaae5921aad6d8f64b54 | |
download | aur-d93ddd1baa4c6c4e9b4900012e866d43d5949feb.tar.gz |
2006.09 release
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | hsbase_inline.patch | 21 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6999928d667 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = hugs + pkgdesc = A functional programming system based on Haskell 98 + pkgver = 2006.09 + pkgrel = 1 + url = https://www.haskell.org/hugs/index.html + arch = any + license = BSD + source = https://www.haskell.org/hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz + source = hsbase_inline.patch + sha1sums = 1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9 + sha1sums = ef1a167c2327b3d1bdf8a284a22635f6a6ed7e8b + +pkgname = hugs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ce4b81d1c5ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Flávio Zavan <flavio dot zavan at gmail dot com> +pkgname=hugs +pkgver=2006.09 +pkgrel=1 +pkgdesc="A functional programming system based on Haskell 98" +arch=('any') +url="https://www.haskell.org/hugs/index.html" +license=('BSD') +source=('https://www.haskell.org/hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz' + 'hsbase_inline.patch') +sha1sums=('1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9' + 'ef1a167c2327b3d1bdf8a284a22635f6a6ed7e8b') + +build() { + cd "hugs98-plus-Sep2006" + patch -p1 -i "../hsbase_inline.patch" + ./configure --prefix="/usr" + make +} + +package() { + cd "hugs98-plus-Sep2006" + make DESTDIR="$pkgdir" install +} diff --git a/hsbase_inline.patch b/hsbase_inline.patch new file mode 100644 index 000000000000..d41bec4d8baf --- /dev/null +++ b/hsbase_inline.patch @@ -0,0 +1,21 @@ +diff --git a/packages/base/include/HsBase.h b/packages/base/include/HsBase.h +index aa1a7fb..78d5b46 100644 +--- a/packages/base/include/HsBase.h ++++ b/packages/base/include/HsBase.h +@@ -217,15 +217,7 @@ StgWord64 stg_integerToWord64 (StgInt sa, StgByteArray /* Really: mp_limb_t* */ + when compiling to native code. + -------------------------------------------------------------------------- */ + +-#ifndef INLINE +-# if defined(_MSC_VER) +-# define INLINE extern __inline +-# elif defined(__GNUC__) +-# define INLINE extern inline +-# else +-# define INLINE inline +-# endif +-#endif ++#define INLINE inline + + INLINE int __hscore_get_errno(void) { return errno; } + INLINE void __hscore_set_errno(int e) { errno = e; } |