# Contributor: Ɓukasz Jendrysik # Contributor: Mika Havela # Maintainer: William Pitcock setglobal pkgname = 'cherokee' setglobal pkgver = '1.2.104' setglobal pkgrel = '1' setglobal pkgdesc = '"A very fast, flexible and easy to configure Web Server'" setglobal url = '"http://www.cherokee-project.com/'" setglobal arch = '"all'" setglobal license = '"GPL2'" setglobal depends = '"pcre rrdtool python'" setglobal depends_dev = '"openssl-dev gettext-dev ffmpeg-dev geoip-dev'" setglobal makedepends = ""$depends_dev automake autoconf libtool"" setglobal install = '' setglobal subpackages = ""$pkgname-dev $pkgname-doc $pkgname-lang"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/cherokee/webserver/archive/v$pkgver.tar.gz cherokee.initd cherokee.confd "" setglobal _builddir = ""$srcdir"/webserver-$pkgver" proc build { cd $_builddir ./autogen.sh || return 1 ./configure --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ --with-wwwroot=/var/www \ --enable-os-string="Alpine Linux" make || return 1 } proc package { cd $_builddir make -j1 DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 } setglobal md5sums = '"2266dd801dc0ccb1b81a38919ad322f4 cherokee-1.2.104.tar.gz 8cc44726585fa04a2772a0c3faa6a72d cherokee.initd bd6a840f72c630ce1eaabe058097584f cherokee.confd'" setglobal sha256sums = '"5cbd00ff48503eaf90356b2975e311c02977f9166927e57fc23f541a109efd98 cherokee-1.2.104.tar.gz ce60a8953fe78bf0c5f688d324a3433382709b1d77d78f1074df73366f9cd70c cherokee.initd 58db2070b710f2c3b38bc3d3be9703a22434f736cad742320b930b23cd5fa1b8 cherokee.confd'" setglobal sha512sums = '"1cb68dbfe457a49341eb4e3af4ccf9a55d81d7893b1d0ef2d4f3dbbbe1fde651139a8dac75feec665c7545a9e3d676e3b2745f29fd6ad8eeaeaa5d526004f3dc cherokee-1.2.104.tar.gz d0e3a94ba4b6ad839ec227de26ca6d27416abe1640c73803549349edd1e7f8cf37346f8c8b8d948a4bfcaad4c596d5533448e3e084c4dd1260436731a9803c6d cherokee.initd 3dbe1bef319eb9f59d65194fa71f0b12235245b2f82d995817824be09f312bbad96f72a147fd5ea11b7d503d263e4543b2fca5b49873106b194246c3c75c790f cherokee.confd'"