Date: Tuesday, October 13, 2015 @ 05:11:43 Author: fyan Revision: 143834
archrelease: copy trunk to community-i686, community-x86_64 Added: http-parser/repos/community-i686/ http-parser/repos/community-i686/PKGBUILD (from rev 143833, http-parser/trunk/PKGBUILD) http-parser/repos/community-x86_64/ http-parser/repos/community-x86_64/PKGBUILD (from rev 143833, http-parser/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Copied: http-parser/repos/community-i686/PKGBUILD (from rev 143833, http-parser/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2015-10-13 03:11:43 UTC (rev 143834) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Brian Bidulock <bidul...@openss7.org> + +pkgname=http-parser +pkgver=2.5.0 +pkgrel=1 +pkgdesc="Parser for HTTP Request/Response written in C" +arch=('i686' 'x86_64') +url="https://github.com/joyent/http-parser" +license=('MIT') +depends=('glibc') +makedepends=('git') +source=("$pkgname::git+https://github.com/joyent/http-parser.git#tag=v$pkgver") +md5sums=('SKIP') + +prepare() { + sed -i 's|-Werror||' $pkgname/Makefile +} + +build() { + cd $pkgname + make library +} + +check() { + cd $pkgname + make test +} + +package() { + cd $pkgname + make PREFIX="$pkgdir/usr" install + + install -Dm644 LICENSE-MIT \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + + ln -sf libhttp_parser.so.$pkgver "${pkgdir}/usr/lib/libhttp_parser.so" +} Copied: http-parser/repos/community-x86_64/PKGBUILD (from rev 143833, http-parser/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2015-10-13 03:11:43 UTC (rev 143834) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Brian Bidulock <bidul...@openss7.org> + +pkgname=http-parser +pkgver=2.5.0 +pkgrel=1 +pkgdesc="Parser for HTTP Request/Response written in C" +arch=('i686' 'x86_64') +url="https://github.com/joyent/http-parser" +license=('MIT') +depends=('glibc') +makedepends=('git') +source=("$pkgname::git+https://github.com/joyent/http-parser.git#tag=v$pkgver") +md5sums=('SKIP') + +prepare() { + sed -i 's|-Werror||' $pkgname/Makefile +} + +build() { + cd $pkgname + make library +} + +check() { + cd $pkgname + make test +} + +package() { + cd $pkgname + make PREFIX="$pkgdir/usr" install + + install -Dm644 LICENSE-MIT \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + + ln -sf libhttp_parser.so.$pkgver "${pkgdir}/usr/lib/libhttp_parser.so" +}