imgurbash2 is a simple bash script that allows you to upload images and videos to imgur. Once an image/video is uploaded, the link is displayed on the terminal and copied to your clipboard. Features: * Upload remote HTTP/HTTPS images and videos to imgur. * Upload multiple images and videos at one go. * Upload images/videos to your album and to your account. * Delete previously uploaded images/videos. * Automatically images/videos deletion. * Copy uploaded images/videos' URLs to clipboard. WWW: https://github.com/ram-on/imgurbash2/ PR: 269718
39 lines
878 B
Makefile
39 lines
878 B
Makefile
PORTNAME= imgurbash2
|
|
DISTVERSION= 3.3
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= DtxdF@disroot.org
|
|
COMMENT= Upload or delete images and videos to imgur
|
|
WWW= https://github.com/ram-on/imgurbash2/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= bash>0:shells/bash \
|
|
curl>0:ftp/curl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ram-on
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
${DOCSDIR}/examples.md
|
|
|
|
OPTIONS_RADIO= CLIPBOARD
|
|
OPTIONS_RADIO_CLIPBOARD= WL_COPY XCLIP XSEL
|
|
|
|
WL_COPY_DESC= Use wl-copy
|
|
XCLIP_DESC= Use xclip
|
|
XSEL_DESC= Use xsel-conrad
|
|
|
|
WL_COPY_RUN_DEPENDS= wl-clipboard>0:x11/wl-clipboard
|
|
XCLIP_RUN_DEPENDS= xclip>0:x11/xclip
|
|
XSEL_RUN_DEPENDS= xsel-conrad>0:x11/xsel-conrad
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|