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 - nl2stk - 12-23-2011 07:50 PM

(12-23-2011 06:20 PM)Compact Wrote:  libsidplay - needed for mp3blaster

That's cool! Good old c64 music at the console Tongue
It's still one of the things on my wish/todolist (Santa are you reading?) a descent c64 emulator!

I've made a few emulator PKGBUILD files, and there is one that I'm not to sure about.
FCEU (an 8 bit NES emulator) which is no longer supported, but the source file is still available at the Ubuntu server Tongue You got to love them for being such a great mirrorsite and search engine. I've seen packages which do the same trick with the Debian server. But I honestly don't know what's they're opinion is about 'lending'. I know it won't hurt them, but...


RE: PKGBUILD files - tavvva - 12-23-2011 11:11 PM

Uhuhhhh .... many many new builds Smile I'll check them soon ... next week latest....
I definitely need to finish the human cloning machine...


RE: PKGBUILD files - nl2stk - 12-24-2011 08:38 AM

(12-23-2011 11:11 PM)tavvva Wrote:  I definitely need to finish the human cloning machine...

Well I've tried to build it myself, but I'm not too sure about the dependencies..
Maybe you can give it a look :]

Code:
pkgname=human-cloningmachine
pkgver=1
pkgrel=1
pkgdesc="A helping hand during this X-mas"
url="http://www.whereeveravailable.com"
license=('GPL2')
depends=('lotsoffood' 'beer' 'beautifulwomen')
source=(http://www.whereeveravailable.com/$pkgname-$pkgver.tar.gz)

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

After installing this the next thing happend:
- He's following Doutzen Kroes on Twitter
- He orders me to get him some beer
- He attacks the dogs when they get a bone

So I believe it's pretty Alpha.


RE: PKGBUILD files - tavvva - 12-24-2011 06:11 PM

(12-24-2011 08:38 AM)nl2stk Wrote:  After installing this the next thing happend:
- He's following Doutzen Kroes on Twitter
- He orders me to get him some beer
- He attacks the dogs when they get a bone

It works correctly!
You apparently forgot to add the --disable-bastard-like-behaviour switch in the configuration Sleepy

I'm currently working on several Christmas specific patches and also doing some packages completely dependent on several sheets of wrapping paper and many pieces of adhesive tape.


RE: PKGBUILD files - nl2stk - 12-26-2011 11:09 AM

(12-25-2011 11:09 PM)Compact Wrote:  Yes. Santa is reading, but doesn't know what you mean with descent ......
My fault, I mean decent Smile

Compact Wrote:While there is no 'gcc-libs' package in Delicate I replaced 'gcc-libs' with
'gcc' as dependency. No idea ??? ....??? ....

Me neither, but there is only one way to find out.

Compact Wrote:Arch 'xorg-font-utils' consists off:
- xorg-bdftopcf
- xorg-font-util
- xorg-mkfontdir
- xorg mkfontscale
- xorg-font-utils (dummy package)

'xorg-font-utils' seem to be covered in Delicate with: font-util + xclients
Where 'font-util' covers 'xorg-font-util' and 'xclients' covers the rest.
So there are different names for Delicate and Arch packages. It seems handy
to make a list for different Arch/Delicate package-names to prevent compiling
them again, for this really is a waste of time.........

Well that looks like a good idea. It will be very usefull. There is a lot of information about creating PKGBUILD files on several pages, but it would be mucher clearer to collect all the information and put it all together. It will reduce mistakes and duplicate files (with other names).

Well and for now I'm gonna look what Santa has created Smile


RE: PKGBUILD files - nl2stk - 12-26-2011 03:54 PM

(12-26-2011 11:59 AM)Compact Wrote:  Sorry I forgot the several Delicate's sdl packages under depend=

I've include them, and removed the video-patch.
And it works, only the sound (SDL) was not detected but OSS works fine Smile
That was easily configured by pressing F12 and choose OSS in sound options.
What it needs from the hardware depends on what you have enabled in the configuration (sound on/off or which quality you choose...etc.etc).
Games are working great, I've included a screenshot from the Great Giana Sisters III
Well thanks a lot Santa Smile


RE: PKGBUILD files - nl2stk - 12-26-2011 10:41 PM

(12-26-2011 09:00 PM)Compact Wrote:  Same here with sdl-sound but I let it.
For the reason can be a (missing?) sdl-package or Vice itself ?
Fullscreen didn't work here too, but 2x enlarge did.
When I choose 'something with midi(?)' everything hang.
But it nice to hear it is working. And hope Vice is decent
enough for you.

I didn't test it on fullscreen, I don't have any midi programs (or instruments) so I couldn't test it.
It sure is decent enough, I like the old and classic games and with this emulator there are thousands to choose out Smile

Another emulator, this one is for the 8 bit NES. The original site is off-line, but the original sourcecode is available at the Ubuntu server. It has no fancy interface, it's just fceu (-options) name.rom at the terminal.

Code:
# Maintainer: theo - nl2stk
pkgname=fceu
pkgver=0.98.12
pkgrel=1
pkgdesc="FCE Ultra, an 8 bit NES emulator"
url="http://www.original.site.no.longer.available.com"
license=('custom')
depends=('uclibc' 'gcc' 'sdl' 'zlib')
source=(http://archive.ubuntu.com/ubuntu/pool/universe/f/fceu/fceu_0.98.12.orig.tar.gz)
md5sums=('44be8684c2280111b178c1925be79c08')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make DESTDIR=${startdir}/pkg install
}



RE: PKGBUILD files - nl2stk - 12-27-2011 10:03 AM

(12-27-2011 09:14 AM)Compact Wrote:  Yes this is a strong point off emulators. 1 program runs many. I also like them.
I took a look at Zsnes, but I'm afraid Zsnes still has to wait a little bit ........... mucho
dependencies.

Thank you for FCE Ultra.

I know, perhaps can 'snes' do the job.
A quick look in the ubuntu packages make me believe that you don't have to make any dependencies that snes uses.


RE: PKGBUILD files - nl2stk - 12-27-2011 02:16 PM

GpicView, another lightweight imageviewer from the LXDE desktop. It's an older version because newer versions needs a newer intltool.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Angel Velasquez
pkgname=gpicview
pkgver=0.1
pkgrel=1
pkgdesc="Picture viewer of the LXDE Desktop"
license=('GPL2')
url="http://lxde.org/"
depends=('gtk2' 'librsvg')
source=(http://downloads.sourceforge.net/sourceforge/lxde/${pkgname}-${pkgver}.tar.gz)
md5sums=('ac14fffbe30e41c87892b7f0ff91898b')

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

--EDIT:
Has a .desktop file and icon (PNG) in usr/share/pixmaps


Another tool from the LXDE desktop, called lxtask same story about the intltool so it's an older version. It's a GTK based task manager.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Angel Velasquez
pkgname=lxtask
pkgver=0.1
pkgrel=1
pkgdesc="Task manager of the LXDE Desktop"
license=('GPL2')
url="http://lxde.org/"
depends=('gtk2')
source=(http://downloads.sourceforge.net/sourceforge/lxde/${pkgname}-${pkgver}.tar.gz)
md5sums=('e69b31ea8169bcf1d9b0c40c06a6e782')

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

--EDIT:
Has a .desktop file but no icon, so this needs attention.


RE: PKGBUILD files - nl2stk - 12-28-2011 01:04 PM

Libraries:
The first one is the libxss, screensaver extension library which is sometimes needed for other programs.

Code:
# Maintainer: theo - nl2stk
pkgname=libxss
pkgver=1.1.0
pkgrel=1
pkgdesc="X11 Screen Saver extension library"
license=('custom')
url="http://xorg.freedesktop.org"
depends=('libxext' 'scrnsaverproto')
source=(${url}/releases/individual/lib/libXScrnSaver-$pkgver.tar.bz2)
md5sums=('a4d66a0ef8b306b34a63e12cd0f17bcf')

build() {
  cd "${srcdir}/libXScrnSaver-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

An example of another library which need the libxss is 'tk'.
'tk' is an windowing toolkit for tcl. I believe there are a few programs which uses the 'tcl/tk' libraries, aMSN for example.

Code:
# Maintainer: Theo - nl2stk
# Thanks to: Allan McRae

pkgname=tk
pkgver=8.5.11
pkgrel=1
pkgdesc="A windowing toolkit for use with tcl"
url="http://tcl.sourceforge.net/"
license=('custom')
depends=("tcl" 'libxss' 'libxfont')
source=(http://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz)
md5sums=('b61b72f0aad230091b100746f078b8f1')

build() {
  cd ${srcdir}/tk${pkgver}/unix
    ./configure --prefix=/usr --host=$CHOST --build=$CHOST \
    --mandir=/usr/share/man --enable-threads --disable-64bit
  make || return 1

  make INSTALL_ROOT=${pkgdir} install install-private-headers
  ln -sf wish8.5 ${pkgdir}/usr/bin/wish
  
  # install private headers (FS#14388)
  cd ${srcdir}/tk${pkgver}
  for dir in compat generic generic/ttk unix; do
    install -dm755 ${pkgdir}/usr/include/tk-private/$dir
    install -m644 -t ${pkgdir}/usr/include/tk-private/$dir $dir/*.h
  done

  # install license
  install -Dm644 license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

  # remove buildroot traces
  sed -i \
    -e "s,^TK_BUILD_LIB_SPEC='-L.*/unix,TK_BUILD_LIB_SPEC='-L/usr/lib," \
    -e "s,^TK_SRC_DIR='.*',TK_SRC_DIR='/usr/include'," \
    -e "s,^TK_BUILD_STUB_LIB_SPEC='-L.*/unix,TK_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
    -e "s,^TK_BUILD_STUB_LIB_PATH='.*/unix,TK_BUILD_STUB_LIB_PATH='/usr/lib," \
    ${pkgdir}/usr/lib/tkConfig.sh
}