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 - 01-16-2012 01:26 AM

After the changes another try Smile

NAIM a console-based chat client for AOL and IRC with ncurses.

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

pkgname=naim
pkgver=0.11.8.3.2
pkgrel=1
pkgdesc="An ncurses AOL Instant Messenger and IRC client."
license=('GPL2')
url="http://naim.n.ml.org"
depends=('ncurses')
source=(http://naim.googlecode.com/files/$pkgname-$pkgver.tar.bz2
        $pkgname.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
md5sums=('c9622e3f75d56310829f98fa4dae1f78' 'fda1e9b91cd168bfd7882ebb1aad703c'\
         '4e0af27b01ce56d762cb9e9223072a8c' '5042aaf3b90f32c31f94ad0bd3877327'\
         'bc78b7b25f54a2b419a963a85ddf971d')


build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --host=$CHOST --build=$CHOST
  make || return 1
  make DESTDIR=$pkgdir install
  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

# Remove the libtool stuff
find $pkgdir -name '*.la' -delete
}

The naim.desktop

Code:
[Desktop Entry]
Name=naim
Exec=xterm -geometry 80x25 -fg white -bg black -e naim
Icon=naim
Categories=Network;



RE: PKGBUILD files - tavvva - 01-16-2012 01:26 PM

(12-15-2011 10:42 PM)nl2stk Wrote:  saasound
...
simcoupe

saasound ... libtool stuff & static lib not removed

simcoupe ... g++ is used instead of gcc, therefore passing arch to gcc has no effect in this piece. CXX are passed to g++, CFLAGS are passed to both of them. I changed the substitution to the following:
Code:
sed -i "s/CFLAGS=/CFLAGS=-march=i386 /g" Makefile

... and I found some BMP icon in the sources .... converted to PNG and XPM + added .desktop (menu-generator-groups need to be altered to support the newly created emulator group)


RE: PKGBUILD files - tavvva - 01-16-2012 03:28 PM

(12-20-2011 12:40 PM)nl2stk Wrote:  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 ).

Correct substitution :
Code:
sed -i "s/CFLAGS  =/CFLAGS  = -march=i386/g" src/Makefile.defs

vcard2pal :
our 'awk' is in /bin ... not in /usr/bin/ ... fixed with sed

I created a shell script 'pal-keypress' to wait for a key, found free calendar icon and added .desktop

New menu-generator-group needs to be created ... Console-office


RE: PKGBUILD files - tavvva - 01-16-2012 04:09 PM

(12-22-2011 12:27 PM)nl2stk Wrote:  Mining-haze (a boulderdash clone for the console with ncurses)

Seems to be ok .... I altered the PKGBUILD according to the latest conventions :] ... icons+desktop


RE: PKGBUILD files - nl2stk - 01-16-2012 04:36 PM

(01-16-2012 01:26 PM)tavvva Wrote:  ... and I found some BMP icon in the sources .... converted to PNG and XPM + added .desktop (menu-generator-groups need to be altered to support the newly created emulator group)

I had a nice icon (Sam, the mascotte), but with lighter themes it was almost invisible.
Looking further with google and couldn't find one...
But thanks for adding this to the repos, this is really a nice emulator Smile


RE: PKGBUILD files - tavvva - 01-16-2012 04:41 PM

(01-16-2012 04:36 PM)nl2stk Wrote:  I had a nice icon (Sam, the mascotte), but with lighter themes it was almost invisible.

I like the current robo-icon. I increased the contrast + made the background transparent and it looks good.


RE: PKGBUILD files - nl2stk - 01-16-2012 11:50 PM

(01-16-2012 04:41 PM)tavvva Wrote:  I like the current robo-icon. I increased the contrast + made the background transparent and it looks good.

It's SAM the friendly robot and original mascot Smile
And this one looks good on the lighter themes too.


RE: PKGBUILD files - nl2stk - 01-18-2012 03:32 PM

Beebem, an Acorn BBC emulator (different types inc. master).
My first computer was the Acorn Electron (the smaller brother).
It was a very populair homecomputer in the UK and several schools have those back in the days...
The package contains some patches and I've include them with the .tar file (it saves some work I guess)

Code:
# Maintainer: theo - nl2stk
#
# Thanks to: Peter Lewis

pkgname=beebem
pkgver=0.0.13
pkgrel=1
pkgdesc="An emulator for the BBC Micro computer."
url="http://beebem-unix.bbcmicro.com/"
license=(custom:beebem)
depends=('gtk2' 'sdl')
makedepends=()
source=("http://www.stairwaytohell.com/emulators/${pkgname}-${pkgver}.tar.gz"
    ${pkgname}-${pkgver}-keys.patch
    ${pkgname}-${pkgver}_menu_crash.patch
        ${pkgname}.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
  
md5sums=('44e6edc5c3e5fca9a84e2cddc4bf4858' '6e6ff6237dacaf1c00a59dc8cebe6266'\
         'e319e4d6741091317c9fdf33ad5aac6b' '8618cc71d2e0c3f0ef272f8295841b4e'\
         'c4deeee487246c62ca333a0461c58d98' '29ee0d7dbe9d6933718d4ece069264e0'\
         '293a03b7434bb7be2e3f225619f20255')



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

    patch -p1 < ../${pkgname}-${pkgver}-keys.patch
    patch -p1 < ../${pkgname}-${pkgver}_menu_crash.patch

    ./configure --enable-econet --prefix=$pkgdir/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
    make || return 1
    make install-strip
    install -m 644 -D $srcdir/$pkgname-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
        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
}

The desktopfile, I've include some 'Name' entries...

Code:
[Desktop Entry]
Type=Game;
Name=beebem
Name=[de]=Acorn BBC emulator
Name=[en_CA]=Acorn BBC emulator
Name=[en_GB]=Acorn BBC emulator
Name=[es]=Acorn BBC emulador
Name[fr]=Acorn BBC émulateur
Name[nl]=Acorn BBC emulator
Comment=Acorn BBC emulator
Exec=beebem
Icon=beebem
Categories=Game;

beebem-0.0.13-keys.patch
Code:
diff -Nurp beebem-0.0.13/src/sdl.cpp beebem-0.0.13.keys/src/sdl.cpp
--- beebem-0.0.13/src/sdl.cpp    2006-11-06 00:38:32.000000000 +0000
+++ beebem-0.0.13.keys/src/sdl.cpp    2007-01-20 14:04:45.000000000 +0000
@@ -1363,14 +1363,20 @@ static struct BeebKeyTrans SDLtoBeebEmKe

{SDLK_PAUSE,        -2,-2},    // BREAK

+{SDLK_LEFTBRACKET,      3,8},   // "[" / "{" or left arrow and 1/4 (mode 7)
+{SDLK_RIGHTBRACKET,     5,8},   // "]" / "}" or right arrow and 3/4 (mode 7)
+
+{SDLK_BACKSLASH,        7,8},   // "\" / "|" or 1/4 and || (mode 7)
+
//,   -3,-3,  // ******** PAGE UP
//,   -3,-4,  // ******** PAGE DOWN
//,   -4,0,   // ******** KEYPAD PLUS
//,   -4,1,   // ******** KEYPAD MINUS
-//,    1,8,    // *** an up arrow and a maths divison symbol ???
-//,    3,8,    // *** a left facing arrow and a 1/4 percentage symbol ???
-//,    7,8,    // *** a 1/2 percentage symbol and two vertical lines ???
-//,    5,8,    // *** a right facing arrow and a 3/4 percentage symbol ???
+//              // The following key codes have different symbols in mode 7
+//,    1,8,    // *** an up arrow and a maths divison symbol or
+//,    3,8,    // *** a left facing arrow and a 1/4 percentage symbol or [/{
+//,    7,8,    // *** a 1/2 percentage symbol and two vertical lines or \/|
+//,    5,8,    // *** a right facing arrow and a 3/4 percentage symbol or ]/}

{-1, -1, -1}              // ** END OF LIST **
};

beebem-0.0.13_menu_crash.patch
Code:
diff -Naur beebem-0.0.13/src/sdl.cpp beebem-0.0.13_menu_crash/src/sdl.cpp
--- beebem-0.0.13/src/sdl.cpp    2006-11-06 00:38:32.000000000 +0000
+++ beebem-0.0.13_menu_crash/src/sdl.cpp    2008-07-06 08:28:52.000000000 +0100
@@ -571,6 +571,10 @@

//printf("2: flags set\n");

+    /* Make sure screen surface was free'd.
+     */
+    if (screen_ptr != NULL) Destroy_Screen();
+
  //      if ( (screen_ptr=SDL_SetVideoMode(SDL_WINDOW_WIDTH, SDL_WINDOW_HEIGHT
         if ( (screen_ptr=SDL_SetVideoMode(width, height
     , 8, flags ) ) == NULL){
@@ -580,6 +584,10 @@
                 return false;
         }

+    /* Update GUI pointers to screen surface.
+     */
+    ClearWindowsBackgroundCacheAndResetSurface();
+
//printf("3: SDL_SetVideoMode called\n");



RE: PKGBUILD files - nl2stk - 01-19-2012 01:13 PM

@Compact, I know your looking for a browser without X, and I remember something from the past...
Back in the days I used Arachne for DOS (just as quick HTML viewer in Norton Commander).
But there is a linux port and I honestly don't know if it works, but it might be an alternative for Links.
Here is a link: http://www.glennmcc.org/aralinux/


RE: PKGBUILD files - tavvva - 01-19-2012 01:51 PM

That's simply because of the kernel boot order ... The Linux console is accessible after a successful boot of the Linux kernel, whilst Win9x are booting the kernel from DOS and that makes a similar approach difficult since all the hardware is being initialized again to be exclusively managed by the Windows kernel.