new package: soju
This commit is contained in:
parent
47649e558b
commit
3f31366d73
16
packages/soju/Makefile.patch
Normal file
16
packages/soju/Makefile.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -20,10 +20,10 @@
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
- mkdir -p $(DESTDIR)/etc/soju
|
||||
- mkdir -p $(DESTDIR)/var/lib/soju
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/etc/soju
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/var/lib/soju
|
||||
cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
- [ -f $(DESTDIR)/etc/soju/config ] || cp -f config.in $(DESTDIR)/etc/soju/config
|
||||
+ cp -f config.in $(DESTDIR)$(PREFIX)/etc/soju/config
|
||||
|
||||
.PHONY: soju sojuctl clean install
|
23
packages/soju/build.sh
Normal file
23
packages/soju/build.sh
Normal file
@ -0,0 +1,23 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://git.sr.ht/~emersion/soju
|
||||
TERMUX_PKG_DESCRIPTION="A user-friendly IRC bouncer"
|
||||
TERMUX_PKG_LICENSE="AGPL-V3"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.4.0
|
||||
TERMUX_PKG_SRCURL=https://git.sr.ht/~emersion/soju/refs/download/v${TERMUX_PKG_VERSION}/soju-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=91a78d8f038fb3319042961ff38d9a54a9bf897942804c0a690628dc6c959118
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
termux_setup_golang
|
||||
|
||||
go mod init || :
|
||||
go mod tidy
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
cat <<- EOF > ./postinst
|
||||
#!$TERMUX_PREFIX/bin/sh
|
||||
mkdir -p $TERMUX_PREFIX/var/lib/soju
|
||||
EOF
|
||||
}
|
7
packages/soju/config.in.patch
Normal file
7
packages/soju/config.in.patch
Normal file
@ -0,0 +1,7 @@
|
||||
--- a/config.in
|
||||
+++ b/config.in
|
||||
@@ -1,2 +1,2 @@
|
||||
-db sqlite3 /var/lib/soju/main.db
|
||||
-log fs /var/lib/soju/logs/
|
||||
+db sqlite3 @TERMUX_PREFIX@/var/lib/soju/main.db
|
||||
+log fs @TERMUX_PREFIX@/var/lib/soju/logs/
|
Loading…
Reference in New Issue
Block a user