[Slackbuilds-users] Creating First Slackbuilds and Github
Brandon Pribula
b.pribs11 at gmail.com
Sun Mar 20 00:27:57 UTC 2022
Thanks again, Ruben!
I already had a slackbuild packaged for the latest release version. So I
followed your instructions and applied the necessary changes and tested it
and it all works. Here's how I did it:
VERSION=${VERSION:-1369d24}
TARVERSION=${TARVERSION:-1369d247e3d2bc697892795dea8cc1713344749f}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH="noarch"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$TARVERSION.tar.gz && mv $PRGNAM-$TARVERSION
$PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
On Sat, Mar 19, 2022 at 2:07 PM Ruben Schuller <sb at rbn.im> wrote:
> Hi,
>
> 2022-03-19 Brandon Pribula <b.pribs11 at gmail.com>:
>
> > Thanks for your reply, Ruben :) That's great! I can't believe I
> > missed that before. When I download it I get:
> >
> > nameofpackage-1369d247e3d2bc697892795dea8cc1713344749f.zip
> >
> > Is the version of the package okay like this:
> >
> > nameofpackage-*1369d247e3d2bc697892795dea8cc1713344749f*-noarch-1_SBo
>
> You'll definitively need this version to extract the zip archive, but
> you can store this in another variable in your slackbuild like
>
> ZIPVER="1369d247e3d2bc697892795dea8cc1713344749f"
>
> for the version I'd either go with the date like 220319 if there aren't
> multiple commits on that date, or with the short-hash of git:
>
> git rev-parse --short 1369d247e3d2bc697892795dea8cc1713344749f
>
> (you need to clone the git repository and execute this). You also
> find the short hash in the github UI, but it's hard to explain in a
> mail :)
>
> Cheers
> Ruben
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220319/f8ab6dd3/attachment.htm>
More information about the SlackBuilds-users
mailing list