new package: rig
This commit is contained in:
parent
86d39ce397
commit
fdc4fc240e
17
packages/rig/Makefile.patch
Normal file
17
packages/rig/Makefile.patch
Normal 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
15
packages/rig/build.sh
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user