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 - 03-17-2012 05:33 PM

Mange. a ncurses-based spreadsheet (eg csv, tsv) editor
I don't know much about it, but there is a man page Smile

Code:
# Maintainer: Theo - nl2stk
# Thanks to: Jesse McClure
pkgname=mange
pkgver=0.1b
pkgrel=1
pkgdesc="A ncurses-based spreadsheet (eg csv, tsv) editor"
url="http://dl.dropbox.com/u/39577570/mange-0.1b.tar.gz"
license=('GPLv3')
depends=('ncurses')
source=(http://dl.dropbox.com/u/39577570/mange-0.1b.tar.gz
        $pkgname.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
md5sums=('487467f857b22b35766cb33ac6afdf1d' '475113677bdeda75028854381efcd05e'\
         '775a80576ef7544bd6af69ebe77a8b82' 'fc5e24fcdfbc1990e7639c81298ca6e5'\
         '173104c0ee1b1e5ad66258977f8c8127')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make || return
  make PREFIX=/usr 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

}

The mange.desktop
Code:
[Desktop Entry]
Name=mange
Exec=xterm -geometry 80x25 -fg white -bg black -e mange
Icon=mange
Categories=Office;

The icons etc. are in the tar file.


RE: PKGBUILD files - delix - 03-17-2012 07:54 PM

(03-17-2012 03:19 PM)delix Wrote:  thanks,
don't know the reasonfor the failure either -- perhaps it's a matter of the gcc version. there is not so much else the program depends of

as I had a look in the repo and couldn't find the libintl, I guess this the reason for the failure.
Removing libintl from the makedepends and adding the --disable-nls option to the configure section should fix this problem. But then, of course, there is no support for the localization any longer.


RE: PKGBUILD files - nl2stk - 03-17-2012 10:08 PM

(03-17-2012 07:54 PM)delix Wrote:  Removing libintl from the makedepends and adding the --disable-nls option to the configure section should fix this problem. But then, of course, there is no support for the localization any longer.

You're right, now it works. Thank you very much for solving this problem.
I don't know how it is in other countries but where used to 50/50 software.
One half in Enlish and the other half is Dutch, well in most cases...
Some of them hate that and they use English only.
I guess that it's better a program in Enlish than no program at all.
But here it is the working Enlish version.

Code:
# Maintainer: delix
# Thanks to: Christian Stankowic <info at stankowic hypen development dot net>

pkgname=calcurse
pkgver=2.9.2
pkgrel=1
pkgdesc="Personal organizer using ncurses"
url="http://www.calcurse.org"
license=('BSD')
depends=('ncurses')
source=(http://calcurse.org/files/calcurse-${pkgver}.tar.gz
       $pkgname.desktop
       $pkgname.png
       ${pkgname}_16x16.xpm
       ${pkgname}_32x32.xpm)
md5sums=('5cb7d9c9edddc551fc62c9c5733591c5' '023ea0a5852d546507ec34d1307148e8'\
         '40be895ef62e6ad5f9f7af4eb55d9982' '3cd2695cb6252e7a03c27fe250cdc064'\
         '6a2d8e606a4be266f06212da0303d1e2')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --mandir=/usr/man --disable-nls --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
}

The calcurse.desktop
Code:
[Desktop Entry]
Name=Calcurse
Exec=xterm -fg white -bg black -e calcurse
Icon=calcurse
Categories=Office;

The icons, etc are in the tar file


RE: PKGBUILD files - delix - 03-18-2012 09:01 AM

sooner or later the libintl library will be necessary anyway.

It is neither difficult to build nor very heavy. But it is a system library, so tavvva should decide whether it should be included in the repos or not.

EDIT : http://libintl-lite.sourceforge.net/ seems to be an alternative
gettext instead of libintl inthe makedepends may be another option. however, I'm a little bit confused by all theses libraries..


RE: PKGBUILD files - nl2stk - 03-18-2012 10:43 AM

The famous battleships game for the console (with ncurses).
There was no need to made it in 386 modus, because it already is :]

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

pkgname=bs
pkgver=2.7
pkgrel=1
pkgdesc="The classic game of Battleships against the computer. Ncurses."
url="http://www.catb.org/~esr/bs/"
license=('GPL2')
depends=('ncurses')
source=($url/$pkgname-$pkgver.tar.gz
        $pkgname.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
md5sums=('5786c6006e503d100e65139dadb5d5a7' '28c483e170857ae5ef6b10ea1c427d15'\
         '861838aec175fe957dabf81606d95e13' '38fa8f318769f4a6fab69acc932e2c16'\
         '4c6f408c045e641f69cef8dfb37d028c')

build() {
  cd $srcdir/$pkgname-$pkgver
  make || return 1
  install -Dm755 bs $pkgdir/usr/bin/bs
  install -Dm644 bs.6 $pkgdir/usr/share/man/man6/bs.6
  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
}

And the bs.desktop
Code:
[Desktop Entry]
Name=Bs
Exec=xterm -geometry 80x25 -fg white -bg black -e bs
Icon=bs
Categories=Console-game;



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

Another spreadsheet program for the CLI called 'sc'.
The patches etc are in the tarball.

Code:
# Maintainer: theo - nl2stk
#
# Thanks to: Jay Tanzman


pkgname=sc
pkgver=7.16
pkgrel=1
pkgdesc="A curses-based spreadsheet calculator"
url="http://packages.ubuntu.com/dapper/sc"
license=('custom')
install=$pkgname.install
source=(http://archive.ubuntu.com/ubuntu/pool/universe/s/sc/sc_7.16.orig.tar.gz
    http://archive.ubuntu.com/ubuntu/pool/universe/s/sc/sc_7.16-2.diff.gz
        $pkgname.desktop
        $pkgname.png
        ${pkgname}_16x16.xpm
        ${pkgname}_32x32.xpm)
md5sums=('5463eae8cbd1a156d2d9abd57a84441c' '83d5d8a4b5ffb4e85da887b63c49f2ff'\
         '2aeff47243980c37e4e00fd883d880d5' '98ca4f3ea688dd52a9b3b1b6bc63baa0'\
         'b780b38db02c2553f4c8aa1162cdf3b4' 'fd057cffc07d8369b8f1437eaa9adc4b')

build()
{
    cd ${srcdir}/sc-${pkgver}
    patch -p1 <../sc_${pkgver}-2.diff
        sed -i "s/CC=gcc/CC=gcc -march=i386/g" Makefile
    make || return 1
    make sc.1 psc.1 || return 1
    install -D -s -m 755 sc ${pkgdir}/usr/bin/sc || return 1
    install -D -s -m 755 scqref ${pkgdir}/usr/bin/scqref || return 1
    install -D -s -m 755 psc ${pkgdir}/usr/bin/psc || return 1
    install -D -m 644 tutorial.sc ${pkgdir}/usr/lib/sc/tutorial.sc || return 1
    install -D -m 644 sc.1 ${pkgdir}/usr/share/man/man1/sc.1 || return 1
    install -D -m 644 psc.1 ${pkgdir}/usr/share/man/man1/psc.1 || 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
}

The desktop file is obvious and is in the tarball :]


RE: PKGBUILD files - nl2stk - 03-21-2012 10:08 PM

A small one Smile
And it's for the terminal and there is no need for a icon or desktopfile.
You can view/convert JPG files to the ASCII format (black and white or colour).

Code:
# Maintainer: theo - nl2stk
# Thanks to: Tim Yang <tdy@gmx.com>
#
pkgname=jp2a
pkgver=1.0.6
pkgrel=1
pkgdesc="A small utility for converting JPG images to ASCII"
url="http://jp2a.sourceforge.net/"
license=('GPL')
depends=('curl' 'libjpeg')
source=(http://downloads.sourceforge.net/jp2a/jp2a-$pkgver.tar.gz)
md5sums=('eb6281eee29acf1c494dcaf7d745a5df')

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



RE: PKGBUILD files - tavvva - 03-28-2012 08:43 PM

(03-17-2012 07:54 PM)delix Wrote:  
(03-17-2012 03:19 PM)delix Wrote:  thanks,
don't know the reasonfor the failure either -- perhaps it's a matter of the gcc version. there is not so much else the program depends of

as I had a look in the repo and couldn't find the libintl, I guess this the reason for the failure.
Removing libintl from the makedepends and adding the --disable-nls option to the configure section should fix this problem. But then, of course, there is no support for the localization any longer.

libintl is a part of uClibc, but sometimes the software just doesn't link agains it. This usually needs some Makefile patching .... I hope I'll find more time to continue with reviews once the 0.1-alpha3 CD is out ...


RE: PKGBUILD files - delix - 03-29-2012 09:42 PM

Quote:libintl is a part of uClibc, but sometimes the software just doesn't link agains it. This usually needs some Makefile patching .... I hope I'll find more time to continue with reviews once the 0.1-alpha3 CD is out ...

I think I can remember I built the libintl package for DeLi-0.8 because it was missing there, too.
Shouldn't it be part of the gettext package now ?


RE: PKGBUILD files - tavvva - 03-29-2012 11:45 PM

(03-29-2012 09:42 PM)delix Wrote:  
Quote:libintl is a part of uClibc, but sometimes the software just doesn't link agains it. This usually needs some Makefile patching .... I hope I'll find more time to continue with reviews once the 0.1-alpha3 CD is out ...

I think I can remember I built the libintl package for DeLi-0.8 because it was missing there, too.
Shouldn't it be part of the gettext package now ?

Arghh ... sorry ... I forgot ... uClibc provides it's own intl/libintl interface, but we actually don't use it, because we already use the libintl.so/libintl.h from the gettext package. Anyway ... It's already present and you probably just need to patch the Makefile to contain -lintl in the linker options.