summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8698bca549ffa21f55fe589f2366c24bcd1514f (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
# Contributor: Michal Wojdyla < micwoj9292 at gmail dot com >
# Contributor: Allen Zhong <moeallenz@gmail.com>
# Contributor: Jonathan Liu <net147@gmail.com>
_hash=8fb45feab94152a6aae3492aed4b81c363a912bd
pkgname=mod_python2
pkgver=3.5.0
pkgrel=3
pkgdesc="An Apache module that embeds the Python2 interpreter within the server"
arch=('i686' 'x86_64')
url="http://www.modpython.org/"
license=('APACHE')
depends=('apache' 'python2')
conflicts=('mod_python2-legacy' 'mod_python')
install="mod_python.install"
source=(mod_python-$_hash.zip::https://github.com/grisha/mod_python/archive/$_hash.zip)
options=('!strip')
md5sums=('e918cb1141d17aa754d1a51cbd458112')

build() {
  cd "$srcdir/mod_python-$_hash"
  sed -i -e "s#git describe --always#echo $pkgrel#" dist/version.sh
  ./configure --prefix=/usr --with-python=/usr/bin/python2
  sed -i -e "s#-Wl[^ ]*#$LDFLAGS#g" src/Makefile
  make
}

package() {
  cd "$srcdir/mod_python-$_hash"
  install -d "$pkgdir"/usr/bin
  make DESTDIR="$pkgdir" install
}