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 - 03-16-2012 10:45 PM

(03-16-2012 10:13 PM)delix Wrote:  I didn't and don't follow the whole story, but one of things I picked up :
Delicate can't use PKGBUILD files any longer -- right ?

That was probably just a misunderstanding :] It accepts PKGBUILDs, but still the old style ones. You probably just don't remember the oldstyle PKGBUILDs from the old DeLi times :] We still use the old version of pacman (on purpose) and it doesn't have so much new features like the ConnOS/Arch version of pacman. There's no separate package section. This is often used for subpackages and we need to workaround that if we need subpackages. The build() and package() section can be merged and it has the same effect in case of packages without subpackages (that means almost all packages in our case). Some of the keywords are not supported and need to be managed in a different way. Like Theo has written ... your PKGBUILD needs just few changes in order to work.


RE: PKGBUILD files - nl2stk - 03-16-2012 11:15 PM

(03-16-2012 10:31 PM)tavvva Wrote:  that would be nice of you ... it could demonstrate the changes ... since compact removed his howtos, i'm unsure if i should use the information contained in my local copy of that howto and put it in the howto section .... maybe we could do that with your notes?

Well I can make my 'quick and dirty' guide better, and post it in that thread.
I've made the 'PIM' in new style but there are some bugs, so it's not useable but it would work as an quick example how it looks like.

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' 'b198ab69b8251cc5d12efb5a4a879442'\
         '5f33ab3c38fee53c18096fb6542c08af')

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

And the calcurse.desktop (minimal version)

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

INFO for the package.desktop.
The desktop file can have one of the following entries:

Menu-header
Office
Tools
Network
Graphics
AudioVideo
Console-game
Game
Settings
Menu-footer-shutdown

And normally the icons can be tarred and post with the PKGBUILD.

It's a pity that this example doesn't work (lot's of warnings during the build, you can start it but it leaves you with the prompt)


RE: PKGBUILD files - tavvva - 03-16-2012 11:35 PM

Thanks Theo :]

--------

Additionally we could introduce "Console-Office" category for console submenus or console only menu

You can find PKGBUILD examples here: http://delicate-linux.net/0.1/src/
..... some of them might contain obsolete pieces of code, but we can filter/explain them during the review ...


RE: PKGBUILD files - nl2stk - 03-16-2012 11:49 PM

(03-16-2012 11:35 PM)tavvva Wrote:  Thanks Theo :]

--------

Additionally we could introduce "Console-Office" category for console submenus or console only menu

You can find PKGBUILD examples here: http://delicate-linux.net/0.1/src/
..... some of them might contain obsolete pieces of code, but we can filter/explain them during the review ...

You're welcome. :]
It's realy a pity that this example is buggy, I'll give it tomorrow a closer look because it looks realy nice. The "Console-Office" category might be a good idea, I recently found a spreadsheet for the console (Mange). It works, but I didn't read the man page so I don't know how to use it :]
But it's a good thing that there are some programs for that category too.


RE: PKGBUILD files - delix - 03-17-2012 08:53 AM

to tell the truth : I'm not very keen to take on the task of a package maintainer here, as I do this already for some packages of ConnOS.
So, If you don't mind I'll stick with making apps suggestions if I find some suitable for Delicate in my eyes.....


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

(03-17-2012 08:53 AM)delix Wrote:  to tell the truth : I'm not very keen to take on the task of a package maintainer here, as I do this already for some packages of ConnOS.
So, If you don't mind I'll stick with making apps suggestions if I find some suitable for Delicate in my eyes.....

I can only speak for myself, but I think that any kind of help is well-appreciated.


RE: PKGBUILD files - tavvva - 03-17-2012 11:06 AM

(03-17-2012 10:08 AM)nl2stk Wrote:  
(03-17-2012 08:53 AM)delix Wrote:  to tell the truth : I'm not very keen to take on the task of a package maintainer here, as I do this already for some packages of ConnOS.
So, If you don't mind I'll stick with making apps suggestions if I find some suitable for Delicate in my eyes.....

I can only speak for myself, but I think that any kind of help is well-appreciated.

Yes, that's true. Even suggestions might be a good inspiration.


RE: PKGBUILD files - delix - 03-17-2012 11:46 AM

I'll do my very best Wink

hope it's okay for this time to leave calcurse in nl2stk hands....


RE: PKGBUILD files - nl2stk - 03-17-2012 02:07 PM

(03-17-2012 11:46 AM)delix Wrote:  I'll do my very best Wink

hope it's okay for this time to leave calcurse in nl2stk hands....

Well, I'm not sure that I can make that package work.
But I'll do my very best (strange, I've read that before... somewhere..)
It's an awesome pim for the cli.


RE: PKGBUILD files - delix - 03-17-2012 03:19 PM

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