summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69861392eeade45411bf443e69a921f76bb33559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Giorgio Lando <patroclo7@gmail.com>
# Maintainer: Aaron Mueller <mail@aaron-mueller.de>

pkgname=weex
pkgver=2.6.1.5
pkgrel=5
pkgdesc="A non-interactive FTP client for updating web pages"
arch=(i686 x86_64)
license=("GPL")
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
        "http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/regex.h"
        "weex-2.6.1.5-formatstring.patch"
        "weex-2.6.1.5-va_list.patch")
md5sums=("c10192608ab9f715c4c1ea63cf6ad2da"
         "63dc5065aa90e787153804229e7da1c2"
         "a12d955c5a4d6b059395a0da22942114"
         "522552e03b82ab5669fd21c558290691")
url="http://weex.sourceforge.net/"

build() {
  cd $startdir/src/$pkgname-$pkgver

  patch -Np0 -i ../weex-$pkgver-formatstring.patch
  [ "$CARCH" == "x86_64" ] && patch -Np0 -i ../weex-$pkgver-va_list.patch

  # Fix the missing header file, hanks to mibli.
  cp $startdir/src/regex.h $startdir/src/$pkgname-$pkgver/lib_regex.h

  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}