aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/taulubot/Makefile
diff options
context:
space:
mode:
authorJan T <jan@jantuomi.fi>2026-07-23 19:24:22 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-07-23 19:26:00 +0300
commitd57b5cd7830a5b4ed1437b1b648dca62a9b6eea3 (patch)
tree85c5e69424dd2fe4c07be9dbb1b4267ee1503c3d /net-im/taulubot/Makefile
*/*: initial commit
Diffstat (limited to 'net-im/taulubot/Makefile')
-rw-r--r--net-im/taulubot/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/net-im/taulubot/Makefile b/net-im/taulubot/Makefile
new file mode 100644
index 0000000..7db66f7
--- /dev/null
+++ b/net-im/taulubot/Makefile
@@ -0,0 +1,50 @@
+PORTNAME= taulubot
+PORTVERSION= 1.0.0
+CATEGORIES= net-im
+
+MAINTAINER= jan@jantuomi.fi
+COMMENT= Telegram bot for funny pictures of paintings haha
+
+LICENSE= ISCL
+
+USE_GITHUB= yes
+GH_ACCOUNT= jantuomi
+GH_TAGNAME= v1.0.0
+
+NO_CHECKSUM= yes
+NO_ARCH= yes
+NO_BUILD= yes
+
+USES= python:3.11+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-dotenv>0:www/py-python-dotenv@${PY_FLAVOR}
+
+SUB_FILES= pkg-message
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
+
+USE_RC_SUBR= taulubot
+
+APPDIR= ${PREFIX}/taulubot
+STAGE_APPDIR= ${STAGEDIR}${APPDIR}
+
+do-install:
+ ${MKDIR} ${STAGE_APPDIR}/app
+
+ ${INSTALL_DATA} ${WRKSRC}/taulubot.py ${STAGE_APPDIR}/app/
+ ${INSTALL_DATA} ${WRKSRC}/golden.png ${STAGE_APPDIR}/app/
+ ${INSTALL_DATA} ${WRKSRC}/wooden.png ${STAGE_APPDIR}/app/
+
+ (cd ${WRKSRC}/telepot && ${COPYTREE_SHARE} . ${STAGE_APPDIR}/app/telepot)
+
+post-install:
+ @(cd ${STAGEDIR}${PREFIX} && \
+ ${FIND} taulubot -type f -o -type l | \
+ ${SORT}) >> ${TMPPLIST}
+
+ @(cd ${STAGEDIR}${PREFIX} && \
+ ${FIND} taulubot -type d | \
+ ${SORT} -r | \
+ ${SED} 's|^|@dir |') >> ${TMPPLIST}
+
+.include <bsd.port.mk>