PKGBUILDs/community/yaws/PKGBUILD

57 lines
1.5 KiB
Bash
Raw Normal View History

2012-12-01 22:03:28 +00:00
# $Id$
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
2013-04-20 23:12:15 +00:00
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
2012-12-01 22:03:28 +00:00
# Contributor: Patrick Smits <mail@patricksmits.net>
2012-11-29 16:18:16 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.com>
# - remove -m32 command from configure
pkgname=yaws
2013-04-20 23:12:15 +00:00
pkgver=1.96
pkgrel=1
2012-11-29 01:20:58 +00:00
pkgdesc='Yet Another Web Server, pure Erlang HTTP server/framework'
arch=('x86_64' 'i686')
url='http://yaws.hyber.org/'
license=('BSD')
depends=('pam' 'erlang')
backup=('etc/yaws/yaws.conf')
options=('!emptydirs')
install=$pkgname.install
2013-02-28 13:43:21 +00:00
optdepends=('erlang-nox: Erlang without X (headless)')
2012-12-01 22:03:28 +00:00
source=("http://yaws.hyber.org/download/$pkgname-$pkgver.tar.gz"
"$pkgname.service")
2013-04-20 23:12:15 +00:00
sha256sums=('8d4f16d18937335ac021ca4c65c8ee81dc4d71f133718c7148856cc6bf1f55e2'
2013-01-17 17:03:20 +00:00
'3f8347add6e3741e77f7bb9ba6b31feb1c878e2e58ecf19063891e801fa24698')
2013-04-20 23:12:15 +00:00
prepare() {
cd "$pkgname-$pkgver"
2013-01-17 17:03:20 +00:00
# python2 fix
for file in cgi.yaws cgi-bin/foo.py; do
sed -i '0,/on/s//on2/' "www/$file"
done
2013-04-20 23:12:15 +00:00
# remove m32
sed -i 's/\-m32//g' configure
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/lib/erlang/lib"
ln -s /usr/lib/yaws "$pkgdir/usr/lib/erlang/lib/$pkgname-$pkgver"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2012-12-01 22:03:28 +00:00
install -Dm644 "$srcdir/$pkgname.service" \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
# vim:set ts=2 sw=2 et: