Signed-off-by: Wei Jihui weijihuiall@163.com --- pkg/nginx/PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkg/nginx/PKGBUILD
diff --git a/pkg/nginx/PKGBUILD b/pkg/nginx/PKGBUILD new file mode 100644 index 00000000..b437c4b1 --- /dev/null +++ b/pkg/nginx/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=nginx +pkgver=1.14 +pkgrel=2 +arch=('i386' 'x86_64' 'aarch64') +url="https://nginx.org" +license=('BSD') +depends=(pcre zlib openssl gcc) +source=("https://nginx.org/download/nginx-$%7Bpkgver%7D.#%7Bpkgrel%7D.tar.gz") +sha256sums=('SKIP') + +build() +{ + benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}" + mkdir -p "${benchmark_path}" + cd "${srcdir}/nginx-${pkgver}.#{pkgrel}" + ./configure --with-http_ssl_module --prefix="${benchmark_path}" + make +} + +package() +{ + cd "$srcdir/$pkgname-$pkgver" + make install +}
On Thu, Nov 05, 2020 at 01:13:15PM +0800, Wei Jihui wrote:
Signed-off-by: Wei Jihui weijihuiall@163.com
pkg/nginx/PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkg/nginx/PKGBUILD
diff --git a/pkg/nginx/PKGBUILD b/pkg/nginx/PKGBUILD new file mode 100644 index 00000000..b437c4b1 --- /dev/null +++ b/pkg/nginx/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=nginx +pkgver=1.14 +pkgrel=2 +arch=('i386' 'x86_64' 'aarch64') +url="https://nginx.org" +license=('BSD') +depends=(pcre zlib openssl gcc) +source=("https://nginx.org/download/nginx-$%7Bpkgver%7D.#%7Bpkgrel%7D.tar.gz") +sha256sums=('SKIP')
question: how do you determine to use which encryption? git ==> md5sums? tar.gz ==> sha256sums?
+build() +{
- benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
- mkdir -p "${benchmark_path}"
- cd "${srcdir}/nginx-${pkgver}.#{pkgrel}"
- ./configure --with-http_ssl_module --prefix="${benchmark_path}"
- make
+}
+package() +{
- cd "$srcdir/$pkgname-$pkgver"
- make install
+}
2.23.0
On Thu, Nov 05, 2020 at 01:13:15PM +0800, Wei Jihui wrote:
Signed-off-by: Wei Jihui weijihuiall@163.com
pkg/nginx/PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkg/nginx/PKGBUILD
diff --git a/pkg/nginx/PKGBUILD b/pkg/nginx/PKGBUILD new file mode 100644 index 00000000..b437c4b1 --- /dev/null +++ b/pkg/nginx/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=nginx +pkgver=1.14 +pkgrel=2 +arch=('i386' 'x86_64' 'aarch64') +url="https://nginx.org" +license=('BSD') +depends=(pcre zlib openssl gcc) +source=("https://nginx.org/download/nginx-$%7Bpkgver%7D.#%7Bpkgrel%7D.tar.gz")
The prefix is repeated with $uri, how about just use "$uridownload/nginx-${pkgver}.#{pkgrel}.tar.gz"?
Thanks, Xijian