You are not logged in.
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 1I 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
you can share the pkgbuild @ pastebin.com or any other paste site
Offline
My PKGBUILD is here: http://pastebin.com/m74c30163. Nothing special.
Last edited by chisiyuan (2009-11-24 00:19:17)
Awesome is awesome.
Offline
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
@tdy
Gorgeous! It works! Thank you so much for the PKGBUILD!
Awesome is awesome.
Offline