Glabels 3.4.1 Build Script for Ubuntu 20.04

Written by James McDonald

April 22, 2021

Why not use the default Ubuntu package?

Ubuntu was missing some of the Barcode libraries I use. Not sure if this is still true for Ubuntu 20.04 but I still build it from scratch because I use it in docker image for development

This will build Glabels 3.4.1 from what I believe are the latest compatible sources

Build script

#!/bin/sh
 
# enable the deb-src to enable grabbing dev packages
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list

# update the package lists so dev is included
apt-get update

# install the dev tools
apt-get -y install cmake intltool itstool xmllint libxml2-utils

# install the glabel build dependencies
apt-get -y build-dep glabels

cd $HOME
mkdir build
 
cd build && \
    wget https://downloads.sourceforge.net/project/zint/zint/2.6.3/zint-2.6.3_final.tar.gz && \
    tar -xvf zint-2.6.3_final.tar.gz && \
    cd zint-2.6.3.src/ && \
    mkdir build && cd build && \
    cmake .. && make && make install
 
cd $HOME/build && \
    wget https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz && \
    tar xzf barcode-0.98.tar.gz && \
    cd barcode-0.98/ && \
    ./configure && make && \
    make install
 
cd $HOME/build && \
    wget http://ftp.gnome.org/pub/GNOME/sources/glabels/3.4/glabels-3.4.1.tar.xz && \
    tar xvf glabels-3.4.1.tar.xz && \
    cd glabels-3.4.1/ && \
    ./configure && \
    make && make install && ldconfig

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Unifi LAN LOCAL IN OUT

This is a graphic I use to figure out which section to add the firewall rules to in the Unifi UDM/USG controller....