Pet building system

discuss compiling applications for Puppy
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#46 Post by 01micko »

gyro wrote:
01micko wrote:Basically yes, but it is a bug that the .pot file is missing. The system is designed for woof-CE and I don't want to overwrite icons that already exist.
What if they don't already exist?
But they do in any woof-CE puppy (almost from the start - 2 years ago).
01micko wrote:The system is designed for woof-CE and I don't want to overwrite icons that already exist.
gyro wrote:These icons are fairly vital to freememapplet_tray, have you ever run it when they are not present?
gyro
Yes I know. If the icons are deleted from woof-CE then I'll change the build script.
Puppy Linux Blog - contact me for access

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

gnome-mplayer.desktop

#47 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

gnome-mplayer.desktop

unfortunately since Slacko 6.3.0 Gnome-mplayer is located in the wrong category.

Gnome-mplayer is located in CATEGORY "Multimedia" SUB-CATEGORY "audiovideo"
but belongs actually in CATEGORY "Multimedia" SUB-CATEGORY "mediaplayer"

So the category of the menu where gnome-mplayer actually belongs is empty.
This has been already complained in Slacko 6.3.0
http://murga-linux.com/puppy/viewtopic.php?p=873753#873753

I changed the category in the *.desktop files from "audiovideo" to "X-Multimedia-mediaplayer"
and the icon path from png to the svg icon.
Attachments
gnome-mplayer.desktop.tar
gnome-mplayer.desktop ( remove tar fake extension )
(2.88 KiB) Downloaded 452 times

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

transmission

#48 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

transmission.petbuild is using DESKTOP=transmission.desktop file

but should use instead DESKTOP=transmission-gtk.desktop

The currently used desktop file contains
Categories=Network;FileTransfer;P2P;GTK;

This leads to several places in menu

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

#49 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

sylpheed.desktop file contains

Categories=GTK;Network;Email;News;

this leads to several places in menu

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

#50 Post by norgo »

puppylinux-woof-CE/petbuilds
slacko_142

leafpad.desktop file contains:

Categories=Viewer;

very strange but this leads to several places in menu

However Leafpad is an editor not a viewer and Category should become corrected by

Categories=X-Document-edit

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#51 Post by 01micko »

@norgo, thanks for reports and fixes :)

Should now be fixed at petbuilds (slacko_142 branch). Packages also uploaded to repo.
Puppy Linux Blog - contact me for access

Pelo

Gnome-mplayer : change done in my Slaxen 6.3.2

#52 Post by Pelo »

Gnome-mplayer : change done in my Slaxen 6.3.2 (experimental french version of Slacko 6.3.2). Efficient :!:

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

petbuild for latest freeciv (2.5.9)

#53 Post by sc0ttman »

Hi guys, dunno if I am allowed to do pull requests, so I'll post here for now..

This is a bog standard petbuild script, except the 4th option for build_configure(), which adds CLAGS to enable running FreeCiv as root..

(originally copied it from homebank.petbuild.. not sure if I need the 'DESKTOP=freeciv-gtk2.desktop' bit)

Advice/corrections appreciated.

USED:

puppylinux-woof-CE/petbuilds
slacko_142

Code: Select all

# freeciv
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=http://files.freeciv.org/stable/
PKG=freeciv
VER=2.5.9
COMP=tar.bz2
DESC="Turn based strategy game"
DEPS=
CAT=Fun
DESKTOP=freeciv-gtk2.desktop
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
# comment these 2 below if you use a custom package() function
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not

ARCH=$(uname -m)
case $ARCH in # set in build.conf
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

#fix
fixup() {
	(cd ${PKG}-${VER}; chmod 755 *sh)
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
fixup
build_configure $PKG $VER $LIBDIR "$CFLAGS -DALWAYS_ROOT"
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
Works fine on a recent Slacko 32bit build ...
Last edited by sc0ttman on Tue 26 Sep 2017, 22:21, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Torcs 1.3.7

#54 Post by sc0ttman »

puppylinux-woof-CE/petbuilds
slacko_142

I tried to build Torcs 1.3.7 on the same recent Slacko build, 32-bit ..

The Torcs petbuild script lists no dependencies, but I needed to build plib and freealut before Torcs would compile..

Maybe they should be listed as deps in the Torcs petbuild script?

Also, side note, when Torcs did not compile, petbuild still went ahead and built some (empty and broken) PET files.. I don't know much about how it all works, but maybe it's better to NOT package up a broken build?

But I got Freeciv and Torcs compiled easily enough.. Good stuff.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Mednafen and deps

#55 Post by sc0ttman »

Libsndfile

Code: Select all

# libsndfile
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=http://www.mega-nerd.com/libsndfile/files/
PKG=libsndfile
VER=1.0.28
COMP=tar.gz
DESC="sound library"
DEPS=
CAT=Fun
DESKTOP=
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
# comment these 2 below if you use a custom package() function
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not

ARCH=$(uname -m)
case $ARCH in # set in build.conf
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

#fix
fixup() {
	(cd ${PKG}-${VER}; chmod 755 *sh)
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
fixup
build_configure $PKG $VER $LIBDIR
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
Libz

Code: Select all

# zlib
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=https://zlib.net/
PKG=zlib
VER=1.2.11
COMP=tar.gz
DESC="compression library"
DEPS=
CAT=Fun
DESKTOP=
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
# comment these 2 below if you use a custom package() function
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not

ARCH=$(uname -m)
case $ARCH in # set in build.conf
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

#fix
fixup() {
	(cd ${PKG}-${VER}; chmod 755 *sh)
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
fixup
build_configure $PKG $VER $LIBDIR
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT

Still working on getting mednafen to work... :/

TESTED ON a recent Slacko WoofCE 32-bit,

Used this branch to build SDL (also a dep of mednafen):
puppylinux-woof-CE/petbuilds
slacko_142
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

libcdio-0.94

#56 Post by sc0ttman »

Libcdio

Code: Select all

# libcdio
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=https://ftp.gnu.org/gnu/libcdio/
PKG=libcdio
VER=0.94
COMP=tar.gz
DESC="CD image library"
DEPS=
CAT=Utility
DESKTOP=
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
# comment these 2 below if you use a custom package() function
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not

ARCH=$(uname -m)
case $ARCH in # set in build.conf
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

#fix
fixup() {
	(cd ${PKG}-${VER}; chmod 755 *sh)
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
fixup
build_configure ${PKG} $VER $LIBDIR
package_std ${PKG} $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
TESTED ON:
a recent Slacko WoofCE 32-bit,

FOR:
puppylinux-woof-CE/petbuilds
slacko_142
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#57 Post by sc0ttman »

Aqualung

Code: Select all

# aqualung
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=https://github.com/jeremyevans/aqualung/releases/download/1.0/
PKG=aqualung
VER=1.0
COMP=tar.gz
DESC="lightweight gtk music player"
DEPS=+gtk+2
CAT=Multimedia
DESKTOP=aqualung.desktop
BUILD=
CWD=$(pwd)

[ -z "$MWD" ] && MWD=$(dirname $CWD)	
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not	

ARCH=$(uname -m)
case $ARCH in
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

build() {
	cd ${PKG}-${VER}
	./configure --prefix=/usr \
				--localstatedir=/var \
				--sysconfdir=/etc \
				--libdir=/usr/${LIBDIR}
				
	[ "$?" -eq 0 ] || exit 1
	make $MKFLG
	[ "$?" -eq 0 ] || exit 1
	make DESTDIR=$CWD/$PKG-install install
	cd -
}
	
package_fix() {
	echo '[Desktop Entry]
Encoding=UTF-8
Name=Aqualung music player
Icon=/usr/share/aqualung/general.png
Comment=aqualung gtk music player
Exec=aqualung
Terminal=false
Type=Application
Categories=Audio
GenericName=Aqualung music player' > $PKG-install/usr/share/applications/aqualung.desktop
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
build
package_fix
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT	
USED:

puppylinux-woof-CE/petbuilds
slacko_142
Last edited by sc0ttman on Wed 13 Sep 2017, 01:21, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#58 Post by sc0ttman »

Ranger - console based file manager with Vi-like bindings

(Python based, very powerful)

Code: Select all

# ranger
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=http://ranger.nongnu.org/
PKG=ranger
VER=1.8.1
COMP=tar.gz
DESC="powerful console-based file manager with vi-like key bindings"
DEPS=
CAT=Filesystem
DESKTOP=ranger.desktop
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)	
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not	

ARCH=$(uname -m)
case $ARCH in
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

build() {
	cd ${PKG}-${VER}

	[ "$?" -eq 0 ] || exit
	make DESTDIR=$CWD/${PKG}-install install

	cd -
}
	
# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
build
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
ranger.desktop:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Ranger console-based file manager
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=Ranger console-based file manager
Exec=/usr/bin/urxvt -e ranger
Terminal=false
Type=Application
Categories=FileManager
GenericName=Ranger console-based file manager
USED:

puppylinux-woof-CE/petbuilds
slacko_142
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#59 Post by sc0ttman »

Midnight Commander

the petbuild:

Code: Select all

# mc
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=http://ftp.midnight-commander.org/
PKG=mc
VER=4.8.19
COMP=tar.xz
DESC="powerful dual pane console-based file manager"
DEPS=
CAT=Filesystem
DESKTOP=mc.desktop
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)	
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not	

ARCH=$(uname -m)
case $ARCH in
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

build() {
	cd ${PKG}-${VER}
	./configure --prefix=/usr \
				--libdir=/usr/${LIBDIR} \
				--localstatedir=/var \
				--sysconfdir=/etc \
				--with-screen=ncurses
	
	[ "$?" -eq 0 ] || exit
	make || exit
	make DESTDIR=${CWD}/${PKG}-install install

	cd -
}
	
# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
build
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
the .desktop file

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Midnight commander console file manager
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=Midnight commander console file manager
Exec=/usr/bin/urxvt -e mc
Terminal=false
Type=Application
Categories=FileManager
GenericName=Midnight commander console file manager
Built on slacko 6.9.x 32bit,
in the slacko142 branch of petbuild
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#60 Post by sc0ttman »

Fossil 2.3

Code: Select all

# fossil
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=http://www.fossil-scm.org/index.html/uv
PKG=fossil-src
VER=2.3
COMP=tar.gz
DESC="version control, issue tracking and more"
DEPS=
CAT=System
SVER=src-2.3
DESKTOP=
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)	
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not	

ARCH=$(uname -m)
case $ARCH in
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

build() {
	PKG=fossil
	cd ${PKG}-${VER}
	./configure --prefix=/usr \
				--libdir=/usr/${LIBDIR} \
				--localstatedir=/var \
				--sysconfdir=/etc
	
	[ "$?" -eq 0 ] || exit
	make || exit
	make DESTDIR=${CWD}/${PKG}-install install

	cd -
}
	
# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
build
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#61 Post by sc0ttman »

Pigz - faster alternative to gzip

Code: Select all

# pigz
# Builds from https://github.com/puppylinux-woof-CE/petbuilds

. ../func
. ../build.conf

URL=https://zlib.net/pigz
PKG=pigz
VER=2.3.4
COMP=tar.gz
DESC="multi-threaded gzip replacement library"
DEPS=
CAT=BuildingBlock
DESKTOP=
BUILD=
CWD=$(pwd)
[ -z "$MWD" ] && MWD=$(dirname $CWD)	
[ -z "$BUILD" ] && BUILD=$DEF_BUILD
[ -f "$DESKTOP" ] || DESKTOP=not
[ -z "$DEPS" ] && DEPS=not	

ARCH=$(uname -m)
case $ARCH in
 *64) 	LIBDIR=$LIBCONF64 ;;
 arm*)	LIBDIR=$LIBCONFarm;;
 *) 	LIBDIR=$LIBCONF32 ;;
esac

build() {
	cd ${PKG}-${VER}
	
	make
	[ "$?" -eq 0 ] || exit
	make DESTDIR=$CWD/${PKG}-install install

	cd -
}

package_build(){
	mkdir -p ${PKG}-install/usr/bin/
	mv ${PKG}-${VER}/pigz ${PKG}-install/usr/bin/
}

# main
retrieve ${PKG}-${VER}.${COMP}
extract ${PKG}-${VER}.${COMP}
build
package_build
package_std $PKG $VER $ARCH $DESKTOP "$DESC" $DEPS $CAT
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#62 Post by musher0 »

ScOtman,

You lost me! What are you trying to do here? :)

Is there anything wrong with downloading the aqualung source (for example)
from the aqualung site, and building it on your Puppy using the devx?

I gather that pigz don't end up in your ham sandwich?! :lol:

TIA for any leads.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#63 Post by greengeek »

sc0ttman wrote:Ranger - console based file manager with Vi-like bindings

(Python based, very powerful)
Every time I see a python based utility I run a mile. Not sure why that is - I just feel that Python is a security risk and it shrouds everything in mystery. Why can't code be transparent? Why does it need python to do stuff??

Am I being unreasonable?

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#64 Post by sc0ttman »

musher0 wrote:ScOtman,

You lost me! What are you trying to do here? :)
The whole point of this thread is to support the PetBuild system that
01micko put together. The scripts are to go into the petbuild system, at GitHub


It compiles stuff using 'build scripts' ..

You could manually download the source, and manually compile, etc ..
But these '*.petbuild' are like recipes to compile stuff and they makes
compiling stuff reproducible for others..

EXAMPLE: So what if you compiled Aqualung? How does that help me or others?
Did you make a PET? On which Puppy? Will it work on mine too?
Did you share it? Where? Link still work?

Did you make separate EXE, DEV, DOC and NLS? Did you compress and
strip the binaries and image/dat/etc files with advancecomp and optipng?
(Petbuild doen't either but it could/should do this by default, like buildpet does..

... Maybe I try your PET and it doesnt work on my Puppy, so I compile it,
only to find it won't build, so I ask what options YOU used, then after
some time you realise the --no-slang options was needed, so I try that..
Nice it compiled, but how do I package it? Where is the menu entry?
)

Or.... You could just make a petbuild script, which automates all of the above, and I can download it, and then just do:

Code: Select all

cd /usr/share/petbuild/yourpkg
sh yourpkg.petbuild
And then it will compile for me, with all the same options, hacks, patches that
you put into the petbuild, inc any custom .desktop files, etc ..

(Plus, my Pkg manager integrates with this PetBuild system, and lets me
simply do `pkg --pkg-build PKGNAME` .... so rather than compiling
manually I just make a petbuild and run one command..)

Once I got a working PET, I can share the petbuild script, and others can
simply run 1 command to build the same PET:

Code: Select all

sh mypkg.petbuild

... This way is MUCH better than manually compiling stuff, not telling people
the options you used, sharing the PET in a random place, etc, etc ..

This way (with .petbuilds), instead of sharing a PET that *might* work for some, I am sharing
a build script that should compile a working Aqualung for all Puppies.


Puppy users really should get in the habit of making and sharing petbuild
scripts, instead of manually compiling stuff and sharing PETs that *might
work for some*

NOTE, I should *probably* be creating these as Pull Requests on GitHub,
but need to sort some stuff with my GitHub account first..
Last edited by sc0ttman on Wed 13 Sep 2017, 14:46, edited 13 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#65 Post by sc0ttman »

greengeek wrote:
sc0ttman wrote:Ranger - console based file manager with Vi-like bindings

(Python based, very powerful)
Every time I see a python based utility I run a mile. Not sure why that is - I just feel that Python is a security risk and it shrouds everything in mystery. Why can't code be transparent? Why does it need python to do stuff??

Am I being unreasonable?
Yes lol, ranger is awesome.. Look in /usr/lib/python*/*something*/ranger/*** to see its code...

Also, the config files in ~/.config/ranger/ are beautifully written...

And Python is a good language to build stuff in, that is why people use it.
But yeah, it's hard to read, and kinda bloated .. But Puppy has Python 2.7
already, ranger just uses that .. the ranger PET is like 120kb, just FYI..

I have ranger setup on my netbook as my main file manager, with file
previews and file contents listings for image, video, archives, PETs, DEBs,
pdf, doc, xls, torrent, etc, etc...

It's like a MMView on steroids, but works without X too :)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply