summaryrefslogtreecommitdiff
path: root/user/http-parser/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 17:42:33 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-10 17:42:33 +0000
commite3d0a05d8fc328b9d57cf0d2acb1dfd42d258be8 (patch)
tree3692d7a2c62014f141967404d25bc4d16e360c2b /user/http-parser/APKBUILD
parenta71e277f38d0082afd2bd9cce0777afa8294e3c1 (diff)
downloadpackages-e3d0a05d8fc328b9d57cf0d2acb1dfd42d258be8.tar.gz
packages-e3d0a05d8fc328b9d57cf0d2acb1dfd42d258be8.tar.bz2
packages-e3d0a05d8fc328b9d57cf0d2acb1dfd42d258be8.tar.xz
packages-e3d0a05d8fc328b9d57cf0d2acb1dfd42d258be8.zip
user/http-parser: new package
Diffstat (limited to 'user/http-parser/APKBUILD')
-rw-r--r--user/http-parser/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/http-parser/APKBUILD b/user/http-parser/APKBUILD
new file mode 100644
index 000000000..de3af464c
--- /dev/null
+++ b/user/http-parser/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=http-parser
+pkgver=2.9.0
+pkgrel=0
+pkgdesc="Library for parsing HTTP messages in C"
+url=" "
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+subpackages="$pkgname-dev"
+source="http-parser-$pkgver.tar.gz::https://github.com/nodejs/http-parser/archive/v$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
+ true # tested as part of build.
+}
+
+package() {
+ cd "$builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+
+sha512sums="40acecbf71b9f0b4ae857c74c3ec0784d7f341a0cb83cf82b308387d0c5b56d38b282241aaf8ca93816970f2a9e67989f3d9d456459f3986c29fe51ab520155e http-parser-2.9.0.tar.gz"