Updated build for gpicview

This commit is contained in:
dslm4515
2020-11-09 13:34:28 -06:00
parent cdd34b0df1
commit 3c6333014b
2 changed files with 43 additions and 9 deletions

View File

@ -1,9 +0,0 @@
#! /bin/bash
# GPicView 0.2.5
# source: https://downloads.sourceforge.net/lxde/gpicview-0.2.5.tar.xz
./configure --prefix=/usr $BUILDTRUPLE &&
read -p "Compile? " && make -j2 &&
read -p "Install? " && sudo -S porg -lD "make install" &&
sudo -S sed -i 's/Utility;//' /usr/share/applications/gpicview.desktop

View File

@ -0,0 +1,43 @@
#! /bin/bash
# GPicView
# Source: https://downloads.sourceforge.net/lxde/gpicview-0.2.5.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: GTK+2
# Recommended: NONE
# Optional: NONE
./configure --prefix=/usr $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
gpicview: gpicview (A Simple and Fast Image Viewer for X)
gpicview:
gpicview: GPicView is a simple image viewer made for the lxde desktop,
gpicview: but has minimal dependencies and low memory usage, depending
gpicview: only on gtk+ system libraries
gpicview:
gpicview:
gpicview:
gpicview:
gpicview:
gpicview:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/gpicview-0.2.5-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*