Pet building system

discuss compiling applications for Puppy
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#41 Post by greengeek »

Jasper wrote:Yes, I'm happy with my build of Joe's v. 976, but it may be better to make your own jwm976 pet for Slacko by using the appropriate devx and amigo's src2pkg.
Hi Jasper -ahh yes, you are using precise, not slacko as I thought. I was a bit hasty in reading your post and misinterpreted the "5.6" - I will follow anikins directions and cook my own for Slacko 5.6. cheers!

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

petbuilds and utilities source

#42 Post by gyro »

Hi,
I'm posting in this topic since the discussion seems a bit out of place with folk discussing actually using woof-ce.

My expectation is that there should be a git repository where the source of utilities like freememapplet_tray could be stored.
After a pull-request against the source has been accepted, an appropriate "petbuilds" script could be run to produce a ".pet" for a puppy (or group of puppies).
This ".pet" would then become available via PPM for the puppy, and picked up by the next generation of the puppy using woof-ce.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#43 Post by gyro »

Hi 01micko,

I don't get it.
I just forked and cloned the "petbuilds" repository to try the "freememapplet" pet.
I eventually worked out how to build it but the resulting ".pet" was missing a few files, i.e. the icon files and the ".pot".
Is this what it's supposed to do, or am I missing something?

gyro

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

#44 Post by 01micko »

Sorry gyro for missing this.
I just forked and cloned the "petbuilds" repository to try the "freememapplet" pet.
I eventually worked out how to build it but the resulting ".pet" was missing a few files, i.e. the icon files and the ".pot".
Is this what it's supposed to do, or am I missing something?
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.

Cheers.
Puppy Linux Blog - contact me for access

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#45 Post by gyro »

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?
These icons are fairly vital to freememapplet_tray, have you ever run it when they are not present?
gyro

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]

Post Reply