[arch-commits] Commit in erlang/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Sat Dec 6 21:59:39 UTC 2014
Date: Saturday, December 6, 2014 @ 22:59:38
Author: arodseth
Revision: 123558
upgpkg: erlang 17.3.4-1
Modified:
erlang/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-12-06 20:56:01 UTC (rev 123557)
+++ PKGBUILD 2014-12-06 21:59:38 UTC (rev 123558)
@@ -8,27 +8,31 @@
pkgbase=erlang
pkgname=('erlang' 'erlang-unixodbc')
-pkgver=17.3
+pkgver=17.3.4
pkgrel=1
arch=('x86_64' 'i686')
url='http://www.erlang.org/'
license=('custom')
-makedepends=('perl' 'mesa' 'lksctp-tools' 'unixodbc' 'wxgtk' 'glu')
+makedepends=('perl' 'mesa' 'lksctp-tools' 'unixodbc' 'wxgtk' 'glu' 'git')
options=('staticlibs')
-source=("http://www.erlang.org/download/otp_src_$pkgver.tar.gz"
- "http://www.erlang.org/download/otp_doc_man_$pkgver.tar.gz"
+source=("git://github.com/erlang/otp.git#tag=OTP-$pkgver"
+ "http://www.erlang.org/download/otp_doc_man_${pkgver%.*}.tar.gz"
'epmd.service'
'epmd.socket'
'epmd.conf')
-sha256sums=('d4be03eb346016f4ca95d53eb9437ffaa6106762f153620dd98cd7f7733b76e4'
+sha256sums=('SKIP'
'3fabdac0b0594432fdd8186fa2c74ff49a629a9bcc4174e3bd605a3d4002dab7'
'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e'
'998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34'
'78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2')
+prepare() {
+ cd otp
+ ./otp_build setup
+}
+
build() {
- cd "otp_src_$pkgver"
-
+ cd otp
./configure --prefix=/usr --enable-smp-support --with-odbc
make
}
@@ -42,13 +46,11 @@
provides=('erlang-nox')
conflicts=('erlang-nox')
- cd "otp_src_$pkgver"
+ make -C otp DESTDIR="$pkgdir" install
- make DESTDIR="$pkgdir" install
-
# Documentation
install -d "$pkgdir/usr/share/doc/erlang"
- install -m0644 "$srcdir/otp_src_$pkgver/README.md" \
+ install -m0644 "$srcdir/otp/README.md" \
"$srcdir"/{README,COPYRIGHT} \
"$pkgdir/usr/share/doc/erlang"
@@ -57,7 +59,7 @@
cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang/"
# License
- install -Dm0644 "$srcdir/otp_src_$pkgver/EPLICENCE" \
+ install -Dm0644 "$srcdir/otp/EPLICENCE" \
"$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
# Move over files that will be packaged as erlang-unixodbc
@@ -82,7 +84,7 @@
mv "$srcdir/odbc.3.gz" "$pkgdir/usr/lib/erlang/man/man3/"
# License
- install -Dm0644 "$srcdir/otp_src_$pkgver/EPLICENCE" \
+ install -Dm0644 "$srcdir/otp/EPLICENCE" \
"$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
}
More information about the arch-commits
mailing list