new package: natpmpc

Requested in https://github.com/termux/termux-packages/issues/4842.
This commit is contained in:
Leonid Pliushch 2020-01-26 19:01:37 +02:00
parent bb8d3acd48
commit 1d855faeb9
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -uNr libnatpmp-20150609/Makefile libnatpmp-20150609.mod/Makefile
--- libnatpmp-20150609/Makefile 2013-12-09 22:52:28.000000000 +0200
+++ libnatpmp-20150609.mod/Makefile 2020-01-26 18:59:59.510655815 +0200
@@ -5,7 +5,7 @@
# http://miniupnp.free.fr/libnatpmp.html
OS = $(shell uname -s)
-CC = gcc
+CC ?= gcc
INSTALL = install -p
ARCH = $(shell uname -m | sed -e s/i.86/i686/)
VERSION = $(shell cat VERSION)

View File

@ -0,0 +1,7 @@
TERMUX_PKG_HOMEPAGE=http://miniupnp.free.fr/libnatpmp.html
TERMUX_PKG_DESCRIPTION="Portable and fully compliant implementation of NAT-PMP"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_VERSION=20150609
TERMUX_PKG_SRCURL=http://miniupnp.free.fr/files/libnatpmp-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0
TERMUX_PKG_BUILD_IN_SRC=true