summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2012-12-17 22:25:09 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2012-12-17 22:25:09 -0500
commitde4e00e52c5a601ee2aa4af0ddd5884afb61cb58 (patch)
treea12a9010f790450b5e226b0b114c992715d76142
parentcaf34a561f7aee6d8f45ded0ac7395fc5e0ef477 (diff)
Fix builds of libircclient and lua
-rw-r--r--community/libircclient/PKGBUILD4
-rw-r--r--extra/lua/PKGBUILD2
2 files changed, 3 insertions, 3 deletions
diff --git a/community/libircclient/PKGBUILD b/community/libircclient/PKGBUILD
index 72a698e73..edad3bacf 100644
--- a/community/libircclient/PKGBUILD
+++ b/community/libircclient/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=libircclient
pkgver=1.6
pkgrel=1
pkgdesc="A small but powerful library, which implements client-server IRC protocol."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.ulduzsoft.com/libircclient/"
depends=('glibc')
license=('GPL')
@@ -18,7 +18,7 @@ build() {
cd "$srcdir/$pkgname-$pkgver"
# add fPIC flag for x86_64
- [ "$CARCH" = x86_64 ] && export CFLAGS="$CFLAGS -fPIC"
+ [ "$CARCH" != i686 ] && export CFLAGS="$CFLAGS -fPIC"
## Makefile.in fixes:
# invalid `lib` requisite for `install` target
diff --git a/extra/lua/PKGBUILD b/extra/lua/PKGBUILD
index cf6f3c389..5cc472505 100644
--- a/extra/lua/PKGBUILD
+++ b/extra/lua/PKGBUILD
@@ -22,7 +22,7 @@ md5sums=('ae08f641b45d737d12d30291a5e5f6e3'
build() {
cd $pkgname-$pkgver
patch -p1 -i "$srcdir/liblua.so.patch"
- [[ $CARCH == x86_64 ]] && export CFLAGS="$CFLAGS -fPIC"
+ [[ $CARCH != i686 ]] && export CFLAGS="$CFLAGS -fPIC"
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
sed "s/%VER%/${pkgver%.*}/g;s/%REL%/$pkgver/g" ../lua.pc > lua.pc
}