diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -1,18 +1,18 @@ # Maintainer: Brian Bidulock <bidulock@openss7.org> pkgname=http-parser-git -pkgver=2.7.0.r1.gf2c26ee +pkgver=2.7.1.r13.g5c2d339 pkgrel=1 pkgdesc="Parser for HTTP Request/Response written in C" -arch=('i686' 'x86_64') -url="https://github.com/joyent/http-parser" +arch=('i686' 'x86_64' 'armv7h') +url="https://github.com/nodejs/http-parser" license=('MIT') depends=('glibc') makedepends=('git') conflicts=('http-parser') provides=('http-parser') -source=("$pkgname::git+https://github.com/joyent/http-parser.git") -md5sums=('SKIP') +source=("$pkgname::git+https://github.com/nodejs/http-parser.git") +sha256sums=('SKIP') pkgver() { cd $pkgname @@ -24,9 +24,14 @@ build() { make library } -package() { +check() { cd $pkgname + local CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/}" + make test +} +package() { + cd $pkgname install -Dm644 LICENSE-MIT \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" install -Dm644 AUTHORS \ @@ -34,10 +39,5 @@ package() { install -Dm644 README.md \ "${pkgdir}/usr/share/doc/${pkgname}/README.md" - install -Dm644 http_parser.h "${pkgdir}/usr/include/http_parser.h" - install -Dm644 libhttp_parser.so.2.7.0 "${pkgdir}/usr/lib/libhttp_parser.so.2.7.0" - - ln -sf libhttp_parser.so.2.7.0 "${pkgdir}/usr/lib/libhttp_parser.so.2.7" - ln -sf libhttp_parser.so.2.7.0 "${pkgdir}/usr/lib/libhttp_parser.so.2" - ln -sf libhttp_parser.so.2.7.0 "${pkgdir}/usr/lib/libhttp_parser.so" + make DESTDIR="$pkgdir/" PREFIX="/usr" install } |