Created
May 8, 2013 23:15
-
-
Save anonymous/5544402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Leslie P. Polzer <[email protected]> | |
# Contributor: bender02 at archlinux dot us | |
pkgname=mongoose | |
pkgver=3.7 | |
pkgrel=1 | |
pkgdesc="Small and quick-to-use web server; https/php/cgi support" | |
arch=('i686' 'x86_64') | |
license=('MIT') | |
url="https://github.com/valenok/mongoose" | |
optdepends=('php-cgi: for php support') | |
backup=('etc/mongoose/mongoose.conf') | |
source=(https://github.com/valenok/mongoose/archive/${pkgver}.tar.gz | |
mongoose.conf | |
rc.d.mongoose | |
mongoose.service) | |
md5sums=('d35448e3b459746a04fb1319fe27755d' | |
'f7370a5f065f16e953676ac5888d8d20' | |
'2aea8278222400289576a626fd1ef33d' | |
'f9243699cd7508afa2c5a4adb4b2d1d8') | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make linux | |
} | |
package() { | |
cd "$srcdir" | |
# sample rc.d script and config file courtesy of | |
# Alexandr Leykin: al at instrument dot pl dot ua | |
install -D -m755 rc.d.mongoose "$pkgdir/etc/rc.d/mongoose" | |
install -D -m644 mongoose.conf "$pkgdir/etc/mongoose/mongoose.conf" | |
install -D -m644 mongoose.service "$pkgdir/usr/lib/systemd/system/mongoose.service" | |
cd "$srcdir/$pkgname-$pkgver" | |
# install the binary | |
install -D -m755 mongoose "$pkgdir/usr/bin/mongoose" | |
# install the docs | |
install -d "$pkgdir/usr/share/mongoose" | |
install -m644 UserManual.md README.md "$pkgdir/usr/share/mongoose" | |
# uncomment if you want to | |
# install the sources + examples to /usr/share/mongoose | |
#tar -x -f $srcdir/$pkgname-$pkgver.tgz -C $pkgdir/usr/share/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment