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 - 12-13-2011 04:49 PM

So ... what's missing ... the gimp package needs more care (not forgotten) ... Some of the new packages are still missing in the source repository (not forgotten) ....

Please, add all Your packages in the Packages (Applications) section of this forum with corresponding descriptions / comments + attach their screenshots (without external links, please) + test them properly.


RE: PKGBUILD files - nl2stk - 12-14-2011 08:53 AM

(12-13-2011 04:49 PM)tavvva Wrote:  So ... what's missing ... the gimp package needs more care (not forgotten) ... Some of the new packages are still missing in the source repository (not forgotten) ....

The GIMP was a PKGBUILD that I found (by accident) on the internet for the 'old' Delilinux.
I knew that the newer GIMP uses a lot more dependencies and some of them aren't available for Delicate (yet).
Dbus stuff etc. I'll give it a try myself to make a better PKGBUILD.

Tavvva Wrote:Please, add all Your packages in the Packages (Applications) section of this forum with corresponding descriptions / comments + attach their screenshots (without external links, please) + test them properly.

The ones with screenshots are done :]


RE: PKGBUILD files - nl2stk - 12-14-2011 02:33 PM

Re: GIMP

I've take a look at 'The GIMP' and I *think* the next PKGBUILD is better.

Code:
pkgname=gimp
pkgver=2.4.7
pkgrel=1
pkgdesc='Image manipulation program'
depends=('gtk2' 'glib2' 'pkgconfig' 'pango' 'freetype2' 'libart_lgpl' 'fontconfig' 'libpng' 'libjpeg' 'libtiff' 'libmng' 'librsvg' )
source=(http://ftp.gwdg.de/pub/misc/grafik/gimp/gimp/v2.4/gimp-2.4.7.tar.bz2)
url='http://www.gimp.org'
md5sums=('8d0e059597d70fbdeb77e6447bae29c4')

build() {

  cd ${startdir}/src/gimp-2.4.7
  ./configure --prefix=/usr  --without-alsa --disable-python --host=$CHOST --build=$CHOST
  make || return 1
  make DESTDIR=${startdir}/pkg install
}

In the README file from the source file, the talk about (missing) dependencies which I included.
'pkgconfig', 'pango', 'freetype2' ,'fontconfig' and 'libart_lgpl' they were available in the repositories.

The other things were optional :
Python and PyGtk, are disabled because PyGtk needs a newer version.
Dbus-glib and ALSA are optional, but not available in the repositories, so I let them out.
From the other options I've included 'libpng', 'libjpeg', 'libtiff', 'libmng' and 'librsvg'

It's still experimental and to be honest I'm not using GIMP that much. I'll get most of the time lost in the options.
But I think this build is more the way it should looklike than the other.


RE: PKGBUILD files - nl2stk - 12-14-2011 03:51 PM

GtkBalls is a simple but awesome logic (GTK) game, where you try to remove as many balls from the game field as you can. Is the clone of well-known DOS game "Lines".

Code:
# Maintainer: theo - nl2stk
# Thanks to: Sergej Pupykin

pkgname=gtkballs
pkgver=3.1.5
pkgrel=1
pkgdesc="clone of Lines - logic game about balls"
url="http://gtkballs.antex.ru/"
license=('GPL')
depends=("gtk2")
source=(http://gtkballs.antex.ru/dist/gtkballs-$pkgver.tar.gz)
md5sums=('1654799db1e9a46607b06f7ad3c0bf05')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr \
              --localstatedir=/var/games/gtkballs \
              --mandir=/usr/share/man \
              --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make install DESTDIR=$pkgdir || return 1
}



RE: PKGBUILD files - nl2stk - 12-14-2011 05:59 PM

Libraries Smile
This one is libexif and can be used by GIMP for example.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Tobias Kieslich

pkgname=libexif
pkgver=0.6.20
pkgrel=1
pkgdesc="A library to parse an EXIF file and read the data from those tags"
license=('LGPL')
url="http://sourceforge.net/projects/libexif"
depends=('uclibc')
source=(http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
md5sums=('19844ce6b5d075af16f0d45de1e8a6a3')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --host=$CHOST --build=$CHOST
  make || return 1
  make DESTDIR="${pkgdir}" install
}

Another one:

Code:
# Maintainer: theo - nl2stk
# Thanks to: Jan de Groot

pkgname=libpciaccess
pkgver=0.12.1
pkgrel=1
pkgdesc="X11 PCI access library"
license=('custom')
url="http://xorg.freedesktop.org/"
depends=('uclibc')
source=(${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2)
md5sums=('d6363ee9f4df79f6fc47cba7c67b0d35')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --host=$CHOST --build=$CHOST
  make || return 1
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}



RE: PKGBUILD files - nl2stk - 12-15-2011 10:42 PM

The next one is for the more powerful computers. I've mention it in another topic. It needs a dependency I've included :]
It's simcoupe, a program to emulate the Sam Coupe . The Sam Coupe was a British 8-bit homecomputer from the late eighties and early nineties. It's (not exactly) a kind of updated ZX Spectrum with better graphics, music inc. MIDI interface, a faster processor Z80B 6 Mhz, more memory (256 or 512k standard, expandable to 4 mb) and an internal 3.5 inch disk drive. It was very easy to 'translate' ZX-Spectrum software to the Sam Coupe. And there are a lot of diskimages found on the internet. Some information for the younger people, the ZX Spectrum was a populair homecomputer in GB and Eastern Europe. In Eastern Europe they made numerous clones (due cold war issues, the original Spectrum was way too expensive overthere) and sometimes they improved them :] At the end of the eighties, the Spectrum was sold to Amstrad and the Amiga and Atari ST was hit the market. They were compared to the 8-bit market expensive. The Sam Coupe was meant to fill the lap between the old 8-bit and new16-bit market, unfortunatley a bit too late. Nowadays there are still hobbyist who created hard and software for it ( a network adapter and a twitter client for example)

The first PKGBUILD is needed to emulate the Philips soundchip who produce 2 x 3 voices stereo.


Code:
# Maintainer: theo - nl2stk
# Thanks to: fuzzix
pkgname=saasound
pkgver=3.2
pkgrel=1
pkgdesc="Phillips SAA 1099 sound chip emulator"
url="http://simonowen.com/sam/saasound/"
license=('custom')
source=(http://simonowen.com/sam/saasound/SAASound-3.2.tar.gz)
md5sums=('6a1e45f3f8958be6cfe88872cec3763f')

build() {
  cd "$srcdir/SAASound-$pkgver"
  ./configure --prefix=/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make DESTDIR=${startdir}/pkg install
  install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

The emulator...

Code:
# Maintainer: theo - nl2stk
# Thanks to: fuzzix
pkgname=simcoupe
pkgver=1.0
pkgrel=1
pkgdesc="SAM Coupe emulator"
url="http://www.simcoupe.org/"
license=('GPL2')
depends=('saasound' 'sdl')
source=(http://prdownloads.sourceforge.net/simcoupe/SimCoupe-$pkgver.tar.gz)
md5sums=('2931e93b877af0a383a4db9424c456f8')

build() {
  cd "$srcdir/SimCoupe/SDL"
  sed -i "s/CC=gcc/CC=gcc -march=i386/g" Makefile
  make || return 1
  install -D -m755 simcoupe "${pkgdir}/usr/bin/simcoupe"
}



RE: PKGBUILD files - nl2stk - 12-20-2011 12:40 PM

Pal is a calendar tool and can be used in textmodus or X11.
It seems that it can be usefull within JWM too ( https://wiki.archlinux.org/index.php/JWM ).

Code:
# Maintainer: theo - nl2stk
pkgname=pal
pkgver=0.4.2
pkgrel=1
pkgdesc="a command-line calendar program for Unix/Linux systems"
url="http://palcal.sourceforge.net/"
license=('GPL')
depends=('glib2' 'readline' 'gettext')
source=(http://downloads.sourceforge.net/sourceforge/palcal/$pkgname-$pkgver.tgz)
md5sums=('1b2fd84871f6ba4b47ab47d8f91a3826')


build() {
  cd "${srcdir}/pal-${pkgver}"
  sed -i "s/CC=gcc/CC=gcc -march=i386/g" Makefilemc
  make || return 1
  cd "${srcdir}/opal-${pkgver}"
  make DESTDIR="${pkgdir}" install
}



RE: PKGBUILD files - nl2stk - 12-22-2011 12:27 PM

Mining-haze (a boulderdash clone for the console with ncurses)

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

pkgname=mining-haze
pkgver=0.1
pkgrel=1
pkgdesc="An ncurses game, clone of classical Boulder Dash - dig in earth, collect diamonds, watch out for stones"
url="http://sourceforge.net/projects/mininghaze/"
license=('GPLv2')
depends=('ncurses')
source=("http://iweb.dl.sourceforge.net/project/mininghaze/mininghaze/0.1/mining-haze-0.1.tar.bz2" "mining-haze-xterm")
md5sums=('0e9e30dcdc3cb27e4a8f234d825fe753' 'e8aa738259e7968c41c6511539ef7cce')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr --datarootdir=/usr/share --host=$CHOST --build=$CHOST
    make || return 1
    make DESTDIR=$pkgdir install
    install -m755 ../mining-haze-xterm $pkgdir/usr/bin/
}

And the mining-haze-xterm

Code:
#!/bin/bash
xterm -fg white -bg black -e mining_haze



RE: PKGBUILD files - nl2stk - 12-22-2011 06:56 PM

Rogue a cli/ncurses based dungeon crawling game.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Kyle Keen
pkgname=rogue
pkgver=5.4.4
pkgrel=1
pkgdesc="The original dungeon crawl game."
url="http://rogue.rogueforge.net/rogue-5-4/"
license=('custom')
depends=('ncurses')
source=("http://www.sourcefiles.org/Games/Role_Play/$pkgname$pkgver-src.tar.gz" "rogue-xterm")
md5sums=('033288f46444b06814c81ea69d96e075' 'f0e05f1ff30c9a310e6d794cd3a7778f')

build() {
  cd "$srcdir"/$pkgname$pkgver
  ./configure --prefix=/usr --host=$CHOST --build=$CHOST
  make
  install -Dm755 rogue "$pkgdir"/usr/bin/rogue
  install -Dm644 rogue.6 "$pkgdir"/usr/share/man/man6/rogue.6
  gzip "$pkgdir"/usr/share/man/man6/rogue.6
  install -Dm644 LICENSE.TXT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.TXT
install -m755 ../rogue-xterm $pkgdir/usr/bin/
}

And the roque-xterm file

Code:
#!/bin/bash
xterm -fg white -bg black -e rogue

Another CLI/Ncurses crawler game Smile

Code:
# Maintainer: theo - nl2stk
# Thanks to: Laurent Carlier

pkgname=avanor
pkgver=0.5.8
pkgrel=1
pkgdesc="A feature rich fantasy roguelike game with an easy ADOM-like user interface"
url="http://sourceforge.net/projects/avanor/"
license=('GPL2')
depends=('uclibc' 'ncurses')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2" "avanor-xterm")
md5sums=('20067962b9635b1789933ddd7933d142' '8f018d00e7786d1f0880628452f13644')

build() {
  cd "$srcdir"/"$pkgname-$pkgver"

  make OPTFLAGS="${CXXFLAGS}" DATA_DIR=/usr/share/avanor/
  mkdir -p ${pkgdir}/usr/{bin,share/avanor}
  install -m755 avanor ${pkgdir}/usr/bin/
  cp -rf manual/ ${pkgdir}/usr/share/avanor/
  install -m755 ../avanor-xterm $pkgdir/usr/bin/
}

And ofcourse the avanor-xterm file

Code:
#!/bin/bash
xterm -fg white -bg black -e avanor

There is no 386 mode added in the PKGBUILD, but during the compilation it was all -march 386 what I saw, so I believe it's not neccesary.


RE: PKGBUILD files - nl2stk - 12-22-2011 08:33 PM

Cryptrover - Another crawler CLI/Ncurses game

Code:
# Maintainer: theo - nl2stk
# Thanks to: Christoph Zeiler

pkgname=cryptrover
pkgver=1.1
pkgrel=1
pkgdesc="Roguelike; guide an archaeologist through an underground crypt"
url="http://$pkgname.googlecode.com/"
license=('GPL3')
depends=('ncurses')
source=("$url/files/${pkgname}_${pkgver}_nosound.tar.gz" "cryptrover-xterm")
md5sums=('65bd2963dcb71cf3203216482a745146' '195f83672fafe02d0c732038e2bbcd2d')

build() {
  cd $pkgname

  sed 's|-Os||g;s|main.c|main.o|g' -i Makefile

  ./configure --without-sdl --host=$CHOST --build=$CHOST
  make STRIP=: || return 1
  install -Dm755 cr "$pkgdir"/usr/bin/$pkgname
  install -m755 ../cryptrover-xterm $pkgdir/usr/bin/
}

And the cryptrover-xterm...

Code:
#!/bin/bash
xterm -fg white -bg black -e cryptrover