You are not logged in.

#1 2009-11-23 13:38:40

chisiyuan
Member
Registered: 2009-10-18
Posts: 24

[SOLVED][REQUEST] sng

Hi guys!
I tried to make a package of sng http://sourceforge.net/projects/sng/, but failed when doing "make". Errors are:

sngd.c:33: error: static declaration of 'png_ptr' follows non-static declaration
sng.h:34: note: previous declaration of 'png_ptr' was here
sngd.c:34: error: static declaration of 'info_ptr' follows non-static declaration
sng.h:35: note: previous declaration of 'info_ptr' was here
make[1]: *** [sngd.o] Error 1

I am not good at dealing with sourceballs. Could anyone give me some tips or just share a PKGBUILD file? Thanks in advance!

Regards,

chi

Last edited by chisiyuan (2009-11-26 05:29:03)


Awesome is awesome.

Offline

#2 2009-11-23 14:49:50

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: [SOLVED][REQUEST] sng

you can share the pkgbuild @ pastebin.com or any other paste site

Offline

#3 2009-11-24 00:16:15

chisiyuan
Member
Registered: 2009-10-18
Posts: 24

Re: [SOLVED][REQUEST] sng

My PKGBUILD is here: http://pastebin.com/m74c30163. Nothing special.

Last edited by chisiyuan (2009-11-24 00:19:17)


Awesome is awesome.

Offline

#4 2009-11-26 05:02:34

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED][REQUEST] sng

Here is a PKGBUILD.  The sed line should fix the compilation error.

pkgname=sng
pkgver=1.0.2
pkgrel=1
pkgdesc="A specialized markup language for representing PNG contents"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/sng/"
license=('custom')
depends=('libpng')
makedepends=('xorg-server-utils')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('7bcbab5d60435da9aa106f3da926c049')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i '33,34 s/static//' sngd.c
  ./configure --prefix=/usr --mandir=/usr/share/man \
      --with-rgbtxt=/usr/share/X11/rgb.txt
  make || return 1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR=$pkgdir install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

Last edited by tdy (2009-11-26 05:09:27)

Offline

#5 2009-11-26 05:27:22

chisiyuan
Member
Registered: 2009-10-18
Posts: 24

Re: [SOLVED][REQUEST] sng

@tdy
Gorgeous! It works! Thank you so much for the PKGBUILD!


Awesome is awesome.

Offline

Board footer

Powered by FluxBB