On 02/03/18 12:00, Willy Sudiarto Raharjo wrote:
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.
./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
   --sysconfdir=/etc \
   --localstatedir=/var \
   --mandir=/usr/man \
   --docdir=/usr/doc/$PRGNAM-$VERSION \

# Compile the application and install it into the $PKG directory
make install DESTDIR=$PKG

How do we replicate the "make install DESTDIR=$PKG" step?

There's a Makefile, so you can use

make usbrelay
make install DESTDIR=$PKG

Thank you - that's brilliant!
SlackBuilds-users mailing list
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to