fix: gpicview compile errors

This commit is contained in:
ngn 2024-08-19 09:49:57 +03:00
parent 115509704e
commit 5254876ac8
7 changed files with 11 additions and 58 deletions

3
src/cpio/.gitignore vendored
View File

@ -1,3 +0,0 @@
.cache/
dist/
root/

View File

@ -1,2 +0,0 @@
# 2.14
First version

View File

@ -1,28 +0,0 @@
NAME="cpio"
DESC="Tools for archiving"
VERSION="2.14"
FILES=("https://ftp.gnu.org/gnu/cpio/cpio-$VERSION.tar.bz2")
HASHES=("b153e1843561841d37190e48b891188d")
DEPENDS=()
PACKAGE() {
tar xf $NAME-$VERSION.tar.bz2
cd $NAME-$VERSION
./configure --prefix=/usr \
--enable-mt \
--with-rmt=/usr/libexec/rmt &&
make &&
makeinfo --html -o doc/html doc/cpio.texi &&
makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi &&
makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi
make DESTDIR=$ROOTDIR install &&
install -v -m755 -d $ROOTDIR/usr/share/doc/cpio-$VERSION/html
install -v -m644 doc/html/* \
$ROOTDIR/usr/share/doc/cpio-$VERSION/html
install -v -m644 doc/cpio.{html,txt} \
$ROOTDIR/usr/share/doc/cpio-$VERSION
cd .. && rm -rf $NAME-$VERSION
}

View File

@ -1,17 +1,22 @@
NAME="gpicview" NAME="gpicview"
DESC="Lightweight image viewer" DESC="Lightweight image viewer"
VERSION="0.2.5" VERSION="0.2.5"
FILES=("https://downloads.sourceforge.net/lxde/gpicview-$VERSION.tar.xz")
FILES=("https://downloads.sourceforge.net/lxde/gpicview-${VERSION}.tar.xz")
HASHES=("26be9b0c5a234f1afe7d83d02a4a33f4") HASHES=("26be9b0c5a234f1afe7d83d02a4a33f4")
DEPENDS=("gtk2") DEPENDS=("gtk2")
BUILD=("intltool")
PACKAGE() { PACKAGE() {
tar xf $NAME-$VERSION.tar.xz tar xf "${NAME}-${VERSION}.tar.xz"
cd $NAME-$VERSION cd "${NAME}-${VERSION}"
export CFLAGS="${CFLAGS} -std=gnu89"
./configure --prefix=/usr ./configure --prefix=/usr
make && make DESTDIR="$ROOTDIR" install make
sed -i 's/Utility;//' "$ROOTDIR/usr/share/applications/gpicview.desktop" make DESTDIR="${ROOTDIR}" install
sed -i 's/Utility;//' "${ROOTDIR}/usr/share/applications/gpicview.desktop"
cd .. && rm -r $NAME-$VERSION cd .. && rm -r "${NAME}-${VERSION}"
} }

View File

@ -1,3 +0,0 @@
.cache/
dist/
root/

View File

@ -1,2 +0,0 @@
# 24.03
First version

View File

@ -1,14 +0,0 @@
NAME="tools"
DESC="Matterlinux tools and scripts collection"
VERSION="24.03"
FILES=("https://git.matterlinux.xyz/Matter/tools/archive/$VERSION.tar.gz")
HASHES=("7c517a9e42b3f819612bcda72e5eb43f131cf538c0cea0b9da9099ca66a4d0ca")
DEPENDS=("bash")
PACKAGE() {
tar xf $VERSION.tar.gz
cd $NAME
mkdir -p $ROOTDIR/usr/bin
make DESTDIR=$ROOTDIR install
cd .. && rm -rf $NAME
}