pkgbuild2pet
I made two scripts that can be used to compile PET packages from Arch Linux build scripts,
called a "PKGBUILD"
- The first script can download PKGBUILDs for you (a folder full of scripts, patches, etc).
- The second script can compile PKGBUILDs to PET packages.
Both scripts are in "alpha" state, and need lots more testing, but so far I have successfully
compiled and packaged the following programs using these scripts (in FossaPup64):
azpainter2, azdrawing, eigen, lowdown, cfiles, hardinfo, jgmenu, slop-git, maim, nnn, st, stella,
mupen64plus, scummvm, others...
REQUIRES:
The devx is required!
USAGE:
Get the PKGBUILD for the package you want to build:
Code: Select all
arch-pkgbuild-download azdrawing # download PKGBUILD stuff to /usr/local/src/arch/azdrawing
Build the PKGBUILD to a PET package:
Code: Select all
arch-pkgbuild-compile azdrawing # compile Az Drawing program, and package it up as a PET
About downloading PKGBUILDs:
3 sources are used:
- the official repos (via svn),
- the community repos (via svn)
- and PKGBUILD .tar.gz snapshots from the Arch Linux site (curl or wget)
arch-pkgbuild-download
will create and use these dirs:
Code: Select all
/usr/local/src/arch/packages/ <-- the core, extra repos (svn), containing PKGBUILDs
/usr/local/src/arch/community/ <-- the community repo (svn), containing PKGBUILDs
/usr/local/src/arch/<pkgname>/ <-- tar.gz PKGBUILD snapshots pulled from svn end up here
About compiling PKGBUILDs:
Once you have a PKGBUILD downloaded, such as: /usr/local/src/arch/hardinfo/PKGBUILD
You can compile it and create a PET like so:
Code: Select all
arch-pkgbuild-compile hardinfo
Download, Compile and Package in "one go"
Using these scripts, you can do the downloading, compiling and PET packaging in one go with a simple function:
Code: Select all
function pkgbuild2pet { arch-pkgbuild-download "$@" && arch-pkgbuild-compile "$1"; }
Then use it like so:
Code: Select all
pkgbuild2pet azpainter -y
=====================
Scripts attached below