> I am trying to package usbrelay (https://github.com/darrylb123/usbrelay)
> for SBo - a very useful little utility to control cheap USB relays. The
> instructions at the page above only include the following step:
> 
> # gcc -o usbrelay usbrelay.c -lhidapi-libusb
> 
> which works fine.
> 
> I'm not sure what or where to include in usbrelay.SlackBuild. Would the
> above go instead of the whole lot below?:
> 
> # Your application will probably need different configure flags;
> # these are provided as an example only.
> # Be sure to build only shared libraries unless there's some need for
> # static.
> CFLAGS="$SLKCFLAGS" \
> CXXFLAGS="$SLKCFLAGS" \
> ./configure \
>   --prefix=/usr \
>   --libdir=/usr/lib${LIBDIRSUFFIX} \
>   --sysconfdir=/etc \
>   --localstatedir=/var \
>   --mandir=/usr/man \
>   --docdir=/usr/doc/$PRGNAM-$VERSION \
>   --build=$ARCH-slackware-linux
> 
> # Compile the application and install it into the $PKG directory
> make
> make install DESTDIR=$PKG
> 
> 
> 
> How do we replicate the "make install DESTDIR=$PKG" step?

There's a Makefile, so you can use

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make usbrelay
make install DESTDIR=$PKG


-- 
Willy Sudiarto Raharjo

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to