new package: rig

This commit is contained in:
Tee KOBAYASHI 2022-03-04 09:30:38 +09:00 committed by xtkoba
parent 86d39ce397
commit fdc4fc240e
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-PREFIX=/usr/local
+PREFIX=@TERMUX_PREFIX@
BINDIR=${PREFIX}/bin
-MANDIR=${PREFIX}/man
+MANDIR=${PREFIX}/share/man
DATADIR=${PREFIX}/share/rig
all: rig rig.6
rig: rig.cc
- g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) rig.cc $(LDFLAGS) -o rig -Wall -DDATADIR="\"$(DATADIR)\""
rig.6: rig.6.in
sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6

15
packages/rig/build.sh Normal file
View File

@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=http://rig.sourceforge.net/
TERMUX_PKG_DESCRIPTION="A program that generates fake identities"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.11
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/rig/rig/rig-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=00bfc970d5c038c1e68bc356c6aa6f9a12995914b7d4fda69897622cb5b77ab8
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin rig
install -Dm600 -t $TERMUX_PREFIX/share/man/man6 rig.6
install -Dm600 -t $TERMUX_PREFIX/share/rig data/*.idx
}