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 - 05-21-2012 06:57 PM

Sopwith another game from the same list.
CGA style graphics (WOW!)

Code:
# Maintainer: theo - nl2stk
# Thanks to:
# Gadget3000 <gadget3000 at msn dot com>
# Daniel J Griffiths <ghost1227@archlinux.us>
# Stefan Husmann <stefan-husmann@t-online.de>

pkgname=sopwith  
pkgver=1.7.4
pkgrel=1
pkgdesc="Sidescrolling shoot 'em up game"
url="http://sdl-sopwith.sourceforge.net/"
license=('GPL')
depends=('sdl' 'gtk2')
source=("http://downloads.sourceforge.net/sdl-sopwith/sopwith-${pkgver}.tar.gz"
        $pkgname.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
md5sums=('f7bd8f754409aedd003b5b99d20f06dd' 'b0e4691849bc9c34135752110301ad05'\
         '8f94e8b8e03f0acce51c068130183fe1' '66b31f223d2374c4611eacd0152dcaf3'\
         'c3cea75b42339fdd095080edea1f3883')

build() {
    cd ${srcdir}/sopwith-${pkgver}
    ./configure --prefix=/usr --mandir=/usr/share/man --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
  install -Dm 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  install -Dm 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
  install -Dm 644 $srcdir/${pkgname}_32x32.xpm $pkgdir/usr/share/pixmaps/${pkgname}_32x32.xpm
  install -Dm 644 $srcdir/${pkgname}_16x16.xpm $pkgdir/usr/share/pixmaps/${pkgname}_16x16.xpm
}



RE: PKGBUILD files - snacsnoc - 05-22-2012 04:22 AM

Here's libevent, which was needed to compile tmux. I'll be shortly making a PKGBUILD file for tmux as well. I had to add
Code:
--no-check-certificate
to wget in /etc/makepkg.conf to allow the HTTPS URL.
Code:
# Maintainer: Easton E. <easton@geekness.eu>
# Thanks to Elias <elias@linexa.de>
    pkgname=libevent
    pkgver=1.4.14b
    pkgrel=1
    pkgdesc="An event notification library"
    license=('BSD')
    url="http://www.libevent.org"
    depends=('uclibc' 'python')
    source=("https://github.com/downloads/libevent/libevent/libevent-$pkgver-stable.tar.gz")
    md5sums=('a00e037e4d3f9e4fe9893e8a2d27918c')
    
    build() {
      cd $srcdir/$pkgname-$pkgver-stable
      sed -i 's#python#python2#' event_rpcgen.py
      ./configure --prefix=/usr --sysconfdir=/etc
      make || return 1
    }
    
    package() {
      cd $srcdir/$pkgname-$pkgver-stable
      make DESTDIR=$pkgdir install || return 1
    }



RE: PKGBUILD files - CharlieBros - 05-22-2012 05:07 AM

Damn, I will like to make pkgbuilds and I dont have idea...
Somebody can make the package of CorsixTH?, Here is the link http://code.google.com/p/corsix-th/
Is a opensource clone of the Theme Hospital game engine.
Charlie


RE: PKGBUILD files - snacsnoc - 05-22-2012 05:31 AM

(05-22-2012 05:07 AM)CharlieBros Wrote:  Damn, I will like to make pkgbuilds and I dont have idea...
Somebody can make the package of CorsixTH?, Here is the link http://code.google.com/p/corsix-th/
Is a opensource clone of the Theme Hospital game engine.
Charlie

I found a PKGBUILD file [link] that I'm sure you could get working one way or another.


RE: PKGBUILD files - nl2stk - 05-22-2012 07:22 AM

(05-22-2012 05:07 AM)CharlieBros Wrote:  Damn, I will like to make pkgbuilds and I dont have idea...

Always good to hear that someone would like to make some packages, it's fun and believe it or not in most cases not too difficult :]
Before last August I didn't make packages for any kind of linux distro (despite using linux for years). In an older topic I collected bits and pieces about creating such files, it's here: http://delicate-linux.net/forum/showthread.php?tid=160
There are small things changed (there is now no menugenerator-trigger needed), so most of the information should be a good start.

The title you ask for (corsix-th) is something that I can try to build.
All dependencies are in the repo, except for 1 (timidity++) so that's one I have to build too. It's a bit like a puzzle, collect all the pieces and put them together.


RE: PKGBUILD files - tavvva - 05-22-2012 03:25 PM

(05-22-2012 04:22 AM)snacsnoc Wrote:  Here's libevent, which was needed to compile tmux.

Code:
build() {
    cd $srcdir/$pkgname-$pkgver-stable
    sed -i 's#python#python2#' event_rpcgen.py
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
}
    
package() {
    cd $srcdir/$pkgname-$pkgver-stable
    make DESTDIR=$pkgdir install || return 1
}

The code above won't work ... our version of pacman doesn't support separate package section .... but an easy solution exists .... check the following and compare with the previous ....

Code:
build() {
    cd $srcdir/$pkgname-$pkgver-stable
    sed -i 's#python#python2#' event_rpcgen.py
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
    make DESTDIR=$pkgdir install || return 1
}

As you could notice ... I just removed few lines :]


RE: PKGBUILD files - tavvva - 05-22-2012 03:29 PM

(05-22-2012 05:07 AM)CharlieBros Wrote:  Damn, I will like to make pkgbuilds and I dont have idea...
Somebody can make the package of CorsixTH?, Here is the link http://code.google.com/p/corsix-th/
Is a opensource clone of the Theme Hospital game engine.
Charlie

I liked that game :] I'll check that ....


RE: PKGBUILD files - snacsnoc - 05-22-2012 06:47 PM

(05-22-2012 03:25 PM)tavvva Wrote:  
(05-22-2012 04:22 AM)snacsnoc Wrote:  Here's libevent, which was needed to compile tmux.

Code:
build() {
    cd $srcdir/$pkgname-$pkgver-stable
    sed -i 's#python#python2#' event_rpcgen.py
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
}
    
package() {
    cd $srcdir/$pkgname-$pkgver-stable
    make DESTDIR=$pkgdir install || return 1
}

The code above won't work ... our version of pacman doesn't support separate package section .... but an easy solution exists .... check the following and compare with the previous ....

Code:
build() {
    cd $srcdir/$pkgname-$pkgver-stable
    sed -i 's#python#python2#' event_rpcgen.py
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
    make DESTDIR=$pkgdir install || return 1
}

As you could notice ... I just removed few lines :]
Ahh, I was just about to post back with the corrected version. After pacman -Ql libevent returning nothing, I knew something was wrong. Thanks for the fix.


RE: PKGBUILD files - tavvva - 05-24-2012 02:59 PM

(03-18-2012 10:43 AM)nl2stk Wrote:  The famous battleships game for the console (with ncurses).

bs - seems ok ... in the repo now ...


RE: PKGBUILD files - tavvva - 05-24-2012 03:13 PM

(03-18-2012 01:24 PM)nl2stk Wrote:  Another spreadsheet program for the CLI called 'sc'.
The patches etc are in the tarball.

I experience some issues with the 'sc' binary permissions .... it's some pacman's artificial intelligence that needs to be supressed ...