Skip to content

Instantly share code, notes, and snippets.

@passcod
Forked from anonymous/PKGBUILD
Last active December 17, 2015 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save passcod/5544406 to your computer and use it in GitHub Desktop.
Save passcod/5544406 to your computer and use it in GitHub Desktop.
Fixed mongoose PKGBUILD (project moved to github)
# Contributor: Leslie P. Polzer <polzer@gnu.org>
# Contributor: bender02 at archlinux dot us
# Contributor: Felix Saparelli <me@passcod.name>
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