Last active
May 16, 2022 18:11
-
-
Save patmaddox/d5d8a0e0df656072749bf18f7f634ae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NAME=$(make -C disport -V PORTNAME) | |
VERSION=$(make -C disport -V PORTVERSION) | |
ACCOUNT=$(make -C disport -V GH_ACCOUNT) | |
GH_TAGNAME=$(date -u "+dev-%Y%m%d%H%M%S") | |
DIRNAME="${NAME}-${GH_TAGNAME}" | |
ZIP="${ACCOUNT}-${NAME}-${VERSION}-${GH_TAGNAME}_GH0.tar.gz" | |
REPO="${HOME}/pkg_repo" | |
rm -rf /tmp/$DIRNAME | |
cp -Rp . /tmp/$DIRNAME | |
tar -czf $REPO/$ZIP -C /tmp $DIRNAME | |
sudo make -C disport GH_TAGNAME=$GH_TAGNAME MASTER_SITES=file://$REPO/ clean deinstall install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PORTNAME= disport | |
PORTVERSION= 0.1.1 | |
CATEGORIES= ports-mgmt | |
MAINTAINER= pat@patmaddox.com | |
COMMENT= no comment | |
NO_CHECKSUM= yes | |
NO_BUILD= yes | |
USE_GITHUB= yes | |
GH_ACCOUNT= patmaddox | |
GH_PROJECT= disport | |
GH_TAGNAME= 9734b0d2ff4b63c05ef4211b6c9f29094bd6fc4d | |
do-install: | |
$(INSTALL_SCRIPT) $(WRKSRC)/src/disport $(STAGEDIR)$(PREFIX)/bin/ | |
cd $(STAGEDIR)$(PREFIX) && find * -type f -or -type l >> $(TMPPLIST) | |
.include <bsd.port.mk> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment