diff options
-rw-r--r-- | community/erlang/PKGBUILD.mips64el | 71 | ||||
-rw-r--r-- | ~xihh/python2-apsw/LICENSE | 15 | ||||
-rw-r--r-- | ~xihh/python2-apsw/PKGBUILD | 23 |
3 files changed, 71 insertions, 38 deletions
diff --git a/community/erlang/PKGBUILD.mips64el b/community/erlang/PKGBUILD.mips64el new file mode 100644 index 000000000..aa5b12792 --- /dev/null +++ b/community/erlang/PKGBUILD.mips64el @@ -0,0 +1,71 @@ +# $Id: PKGBUILD 67366 2012-03-10 17:20:02Z tdziedzic $ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> +# Contributor: Tom Burdick <thomas.burdick@wrightwoodtech.com> + +pkgname=erlang +pkgver=R14B04 +pkgrel=2 +pkgdesc="A small concurrent functional programming language developed by Ericsson." +arch=(i686 x86_64 'mips64el') +url="http://www.erlang.org/index.html" +license=('custom') +depends=('ncurses' 'glibc') +makedepends=('perl' 'openssl' 'wxgtk' 'unixodbc>=2.3.1' 'mesa') +optdepends=('wxgtk: for wx support' 'unixodbc: database') + +options=('!makeflags') +source=(http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz + http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz) +md5sums=('4b469729f103f52702bfb1fb24529dc0' + 'f31e72518daae4007f595c0b224dd59f') + +# please check these deps reported by namcap when you do the next build: +#erlang E: Dependency java-environment detected and not included (found class files usr/lib/erlang/lib/jinterface-1.5.4/priv/OtpErlang.jar, usr/lib/erlang/lib/ic-4.2.27/priv/ic.jar) +#erlang E: Dependency mesa detected and not included (libraries ['usr/lib/libGLU.so.1'] needed in files ['usr/lib/erlang/lib/wx-0.99/priv/erl_gl.so']) + + +build() { + cd "$srcdir/otp_src_${pkgver/./-}" + export ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk) + export ERLINTERFACEVERSION=$(sed -n 's/^EI_VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < lib/erl_interface/vsn.mk) + + sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure + + CFLAGS="${CFLAGS} -fno-strict-aliasing" ./configure --prefix=/usr --enable-smp-support --enable-threads -enable-native-libs + make +} + +package() { + cd "$srcdir/otp_src_${pkgver/./-}" + make INSTALL_PREFIX="$pkgdir" install + +# fix prefix + cd "$pkgdir" + for i in usr/lib/erlang/bin/erl \ + usr/lib/erlang/bin/start \ + usr/lib/erlang/erts-${ERTSVERSION}/bin/erl \ + usr/lib/erlang/erts-${ERTSVERSION}/bin/start \ + usr/lib/erlang/releases/RELEASES ;do + sed -i "s#$pkgdir##" $i + done + +# fix symlinks + cd "$pkgdir/usr/lib/erlang/bin" + ln -sf ../erts-${ERTSVERSION}/bin/epmd + + cd "$pkgdir/usr/bin" + for file in *; do + ln -sfv ../lib/erlang/bin/$file + done + + ln -s ../lib/erlang/lib/erl_interface-${ERLINTERFACEVERSION}/bin/erl_call "$pkgdir/usr/bin/erl_call" + +# install documentation + install -d "$pkgdir/usr/share/doc/erlang" + install -D -m644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang" + cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang" + + install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE" + +} diff --git a/~xihh/python2-apsw/LICENSE b/~xihh/python2-apsw/LICENSE deleted file mode 100644 index a0470b2a0..000000000 --- a/~xihh/python2-apsw/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -Copyright (C) 2004-2009 Roger Binns - -This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable -for any damages arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it -and redistribute it freely, subject to the following restrictions: - -- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If - you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not - required. - -- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. - -- This notice may not be removed or altered from any source distribution. diff --git a/~xihh/python2-apsw/PKGBUILD b/~xihh/python2-apsw/PKGBUILD deleted file mode 100644 index 92ce6d309..000000000 --- a/~xihh/python2-apsw/PKGBUILD +++ /dev/null @@ -1,23 +0,0 @@ -# Maintainer: Linmiao Xu <linmiao.xu@gmail.com> -# Contributor: Juan Miguel Cejuela <jmcejuela@ashrentum.net> - -pkgname=python2-apsw -pkgver=3.7.9_r1 -pkgrel=1 -pkgdesc="Python wrapper for SQLite" -arch=('i686' 'x86_64' 'mips64el') -url="http://code.google.com/p/apsw/" -license=('MIT') -depends=('python2' 'sqlite3') -source=("http://apsw.googlecode.com/files/apsw-${pkgver//_/-}.zip" 'LICENSE') - -md5sums=('8188a05819553a7a9aad568db23850af' - 'efc704d50cb39441d00f9dc76cbe6665') - -build() { - cd $srcdir/apsw-${pkgver//_/-} - python2 setup.py install --root=$pkgdir/ - - install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE -} - |