void-packages/srcpkgs/mongoose/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

35 lines
807 B
Bash

# Template file for 'mongoose'
pkgname=mongoose
version=3.7
revision=7
wrksrc=$pkgname
makedepends="libressl-devel"
short_desc="An Easy to use Web server"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="https://code.google.com/p/mongoose/"
distfiles="https://mongoose.googlecode.com/files/mongoose-$version.tgz"
checksum=8376ede0378b6dd80ded78953726e9d3c18a2a8fd1a52a03efe949fd09d2ea68
do_build() {
COPT="-DNO_SSL_DL -lcrypto -lssl" make linux
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
}
mongoose-devel_package() {
depends="libmongoose>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}
libmongoose_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}