# Contributor: Michal Wojdyla < micwoj9292 at gmail dot com > # Contributor: Allen Zhong # Contributor: Jonathan Liu _hash=8fb45feab94152a6aae3492aed4b81c363a912bd pkgname=mod_python pkgver=3.5.0 pkgrel=3 pkgdesc="An Apache module that embeds the Python interpreter within the server" arch=('i686' 'x86_64') url="http://www.modpython.org/" license=('APACHE') depends=('apache' 'python') conflicts=('mod_python2-legacy' 'mod_python2') install="$pkgname.install" source=(mod_python-$_hash.zip::https://github.com/grisha/mod_python/archive/$_hash.zip) options=('!strip') md5sums=('e918cb1141d17aa754d1a51cbd458112') build() { cd "$srcdir/$pkgname-$_hash" sed -i -e "s#git describe --always#echo $pkgrel#" dist/version.sh ./configure --prefix=/usr --with-python=/usr/bin/python sed -i -e "s#-Wl[^ ]*#$LDFLAGS#g" src/Makefile make } package() { cd "$srcdir/$pkgname-$_hash" install -d "$pkgdir"/usr/bin make DESTDIR="$pkgdir" install }