Build SPICE Packages
usbredir
Set up
Set our environment variables for the package name. Then configure the build system.
MYPKG=usbredir-0.14.0
mkdir build && cd build
meson setup --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/man --sysconfdir=/etc --localstatedir=/var --buildtype=release ..
Build
ninja
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo DESTDIR=/root/installs/${MYPKG}-${MYARCH} ninja install
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz
spice-protocol
Set up
Set our environment variables for the package name. Then configure the build system.
MYPKG=spice-protocol-0.14.3
mkdir build && cd build
meson setup --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/man --sysconfdir=/etc --localstatedir=/var --buildtype=release ..
Build
This package has no build step since it only consists of the protocol definition.
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo DESTDIR=/root/installs/${MYPKG}-${MYARCH} ninja install
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz
Spice (server)
Set up our environment variables for the package name. Configure the build to be located in /usr.
MYPKG=spice-0.15.2
CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCFLAGS" ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var
Build
make -j $MYTHREADS
Install to temporary directory
sudo mkdir -p /root/installs/${MYPKG}-${MYARCH}
sudo make install-strip DESTDIR=/root/installs/${MYPKG}-${MYARCH}
Create Slackware package from installation directory
sudo bash -c "cd /root/installs/${MYPKG}-${MYARCH} && makepkg --linkadd y --chown y /root/packages/${MYPKG}-${MYARCH}.txz"
Install the resulting package
sudo installpkg /root/packages/${MYPKG}-${MYARCH}.txz