DeLi(cate) Forum
PKGBUILD files - Printable Version

+- DeLi(cate) Forum (http://delicate-linux.net/forum)
+-- Forum: DeLi(cate) Linux [english only] (/forumdisplay.php?fid=3)
+--- Forum: Development (/forumdisplay.php?fid=6)
+--- Thread: PKGBUILD files (/showthread.php?tid=74)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


RE: PKGBUILD files - tavvva - 10-05-2011 10:46 AM

Nobody becomes experienced in a week :] And if people are still able to learn new things, then they're alive! :]

Unfortunately I got sick Confused ... But I'll try to review and upload the packages continuously.
Don't worry, they're not forgotten :]


RE: PKGBUILD files - nl2stk - 10-05-2011 12:46 PM

I'm not complaining, till a couple of months ago I was using the terminal mainly for 'sudo apt-get'. Compiling? only 2 programs minetest and arnold, a cpc emulator to be exactly (which works on Delicate too except for the sound, but needs min. a PII otherwise it's too slow). So I can say I'm a bit further now :]

Get well soon.
There is no need for hurry, the PKGBUILD's wouldn't runaway :]


RE: PKGBUILD files - nl2stk - 10-05-2011 09:33 PM

Yet Another BASIC, a simple BASIC interpreter.

Code:
# Maintainer: theo - nl2stk
# Thanks to: damir

pkgname=yabasic
pkgver=2.763
pkgrel=1
pkgdesc="Yet Another Basic"
license=('GPL2' 'custom:Artistic')
url="http://www.yabasic.de/"
depends=('libX11' 'libsm' 'ncurses')
source=("http://www.yabasic.de/download/$pkgname-$pkgver.tar.gz")
md5sums=('98f0cb59db973b89753abcc24b2c5ec2')

build() {
  cd $startdir/src/$pkgname-$pkgver

  libtoolize --copy --force
  aclocal
  autoheader
  autoconf
  automake -a -c -i

  ./configure --prefix=/usr --host=$CHOST --build=$CHOST
  make || return 1
  make prefix=$startdir/pkg/usr install
  install -Dm644 ARTISTIC ${pkgdir}/usr/share/licenses/yabasic/Artistic
}



RE: PKGBUILD files - nl2stk - 10-06-2011 10:05 AM

Generator (Sega Megadrive/Genesis emulator)
I believe this is a bit 'highend' for typical Delicate machines, assuming this emulates the M68000, Z80a etc.
I didn't test it on my toshiba, but it was just an experiment.

Code:
# Maintainer: theo - nl2stk

pkgname=generator
pkgver=0.35_cbiere_r4
pkgrel=1
pkgdesc="A Sega Megadrive/Genesis emulator"
url="http://www.squish.net/generator"
license=("GPL")
depends=('gtk' 'nasm' 'sdl' 'bzip2' 'zlib' 'libjpeg')
source=("http://www.squish.net/generator/cbiere/generator/generator-0.35-cbiere-r4.tar.bz2")
md5sums=('db4142912872a3f34d6d4e3bfe693b64')

build() {
  cd $startdir/src/$pkgname-0.35-cbiere-r4
  ./configure --prefix=/usr --with-raze --with-sdl-audio --with-gtk
  make
  make DESTDIR="${pkgdir}" install
}

Normally the "./configure" sentence would be:
./configure --prefix=/usr --host=$CHOST --build=$CHOST --with-raze --with-sdl-audio --with-gtk
But with that sentence the result is this.:

Code:
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `i386-linux-uclibc': system `uclibc' not recognized
configure: error: /bin/sh ./config.sub i386-linux-uclibc failed
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Maybe something for a cold winternight to figure that one out :]


RE: PKGBUILD files - tavvva - 10-06-2011 01:12 PM

(10-06-2011 10:05 AM)nl2stk Wrote:  Normally the "./configure" sentence would be:
./configure --prefix=/usr --host=$CHOST --build=$CHOST --with-raze --with-sdl-audio --with-gtk
But with that sentence the result is this.:

Code:
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `i386-linux-uclibc': system `uclibc' not recognized
configure: error: /bin/sh ./config.sub i386-linux-uclibc failed
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Maybe something for a cold winternight to figure that one out :]

Some configure scripts do not support uclibc ... in such cases try to use one of the compatible alternatives .... for example these:
--host=i386-pc-linux-gnu --build=i386-pc-linux-gnu


RE: PKGBUILD files - tavvva - 10-06-2011 03:03 PM

(09-30-2011 07:31 PM)nl2stk Wrote:  Bombic a nice bomberman clone :]

./configure --prefix=/usr --host=$CHOST --build=$CHOST

Have You really succeeded with these build/host values?
I had to change them to i386-pc-linux-gnu in order to pass.
Maybe they were missing during Your very first try and then
You forgot to clean the build environment :]


RE: PKGBUILD files - nl2stk - 10-06-2011 08:14 PM

(10-06-2011 03:03 PM)tavvva Wrote:  Maybe they were missing during Your very first try and then
You forgot to clean the build environment :]

I don't know it for sure, but that could be the issue..
Lucky enough there were not to many PKGBUILD's with ' ./configure --' sentences..


RE: PKGBUILD files - nl2stk - 10-07-2011 02:06 PM

Eyecandy :]
Two programs to add some eyecandy (composite and fading windows and some shadows)
transset-df and xcompmgr.

Code:
# Maintainer: theo - nl2stk
# Contributer: Aaron Schaefer

pkgname=transset-df
pkgver=1
pkgrel=1
pkgdesc="A patched version of X.Org's transset with added functionality"
url="http://forchheimer.se/transset-df/"
license=('GPL')
depends=('libxcomposite' 'libxdamage' 'libxrender')
source=(http://forchheimer.se/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('29252525d2865f01d6eb10e8cb7cf5c9')

build() {
  cd ${srcdir}/$pkgname-$pkgver
  make
  install -D -m755 transset-df ${pkgdir}/bin/transset-df
}

The next one..

Code:
# Maintainer: theo - nl2stk
   # Thanks tor: Jan de Groot
   pkgname=xcompmgr
   pkgver=1.1.1
   pkgrel=1
   pkgdesc="Composite Window-effects manager for X.org"
   url="http://www.freedesktop.org/Software/xapps"
   depends=('xorg-server')
   source=(http://freedesktop.org/xapps/release/$pkgname-$pkgver.tar.bz2)
   md5sums=('5c7b7e1c0360fec4b185cf575cf3fa0a')
      
   build() {
   cd $startdir/src/$pkgname-$pkgver
   ./configure --prefix=/usr --host=$CHOST --build=$CHOST
   make || return 1
   make DESTDIR=$startdir/pkg install
   }

EDIT: An example with both programs running added.

[attachment=41]


RE: PKGBUILD files - nl2stk - 10-08-2011 09:58 AM

Lua 5.1.4, a lightweight programming language which is needed by several applications.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Damir Perisa
pkgname=lua
pkgver=5.1.4
pkgrel=1
pkgdesc="A powerful light-weight programming language designed for extending applications."
url="http://www.lua.org/"
depends=('readline' 'ncurses')
license=(MIT)
source=(http://www.lua.org/ftp/$pkgname-$pkgver.tar.gz)
md5sums=('d0870f2de55d59c1c8419f36e8fac150')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make INSTALL_TOP=$startdir/pkg/usr INSTALL_MAN=$startdir/pkg/usr/share/man/man1 linux install  || return 1
  install -D -m 644 etc/lua.pc $startdir/pkg/usr/lib/pkgconfig/lua.pc
  install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/COPYRIGHT
  # Install the documentation
  mkdir -p $pkgdir/usr/share/doc/lua
  cp -R doc/* $pkgdir/usr/share/doc/lua
}



RE: PKGBUILD files - nl2stk - 10-08-2011 10:36 PM

B.T.W. I've tried the '--host=i386...etc' with generator (sega emulator) and it works! :]