summaryrefslogtreecommitdiff
path: root/community/libcgi/PKGBUILD
blob: 5736cfed5d226201332c0ae0b5af4c61ba761484 (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
34
35
36
37
38
# $Id: PKGBUILD 21582 2010-07-16 19:26:13Z tdziedzic $
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>

pkgname=libcgi
pkgver=1.0
pkgrel=5
pkgdesc='A powerful and easy to use library for writing CGI applications in C'
arch=('i686' 'x86_64' 'mips64el')
url='http://libcgi.sourceforge.net/'
license=('GPL')
depends=('glibc')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('110af367081d33c7ed6527a1a60fc274')

build() {
  cd ${pkgname}-${pkgver}

  sed -i "s/\(hextable\['e'\] = \)13/\114/" src/cgi.c

  #Arch64 Fix
   if [ "$CARCH" = "x86_64" ]; then
      export CFLAGS="$CFLAGS -fPIC"
      export CXXFLAGS="$CFLAGS"
   fi

  ./configure \
    --prefix=/usr

  make
}

package() {
  cd ${pkgname}-${pkgver}

  mkdir -p ${pkgdir}/usr/{lib,include}

  make prefix=${pkgdir}/usr install
}