diff options
Diffstat (limited to 'community/xnc')
-rw-r--r-- | community/xnc/PKGBUILD | 23 | ||||
-rw-r--r-- | community/xnc/xnc-gcc44.patch | 56 |
2 files changed, 79 insertions, 0 deletions
diff --git a/community/xnc/PKGBUILD b/community/xnc/PKGBUILD new file mode 100644 index 000000000..fe520c655 --- /dev/null +++ b/community/xnc/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: PKGBUILD 8981 2010-01-23 01:17:11Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=xnc +pkgver=5.0.4 +pkgrel=3 +pkgdesc="X nortern captain file manager" +arch=(i686 x86_64) +url="http://xnc.jinr.ru/" +license=('GPL') +depends=('gcc-libs' 'libpng' 'libtiff' 'libsm' 'libxext' 'libjpeg>=7') +makedepends=('libxt') +options=('!makeflags') +source=(http://xnc.jinr.ru/src-5/xnc-$pkgver.src.tar.gz xnc-gcc44.patch) +md5sums=('62446cdfdf5730f125fb351a658c0bd3' '60673809f2db3a8d9939e9f38ade59d2') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -p0 < ../xnc-gcc44.patch || return 1 + ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} diff --git a/community/xnc/xnc-gcc44.patch b/community/xnc/xnc-gcc44.patch new file mode 100644 index 000000000..5ce977850 --- /dev/null +++ b/community/xnc/xnc-gcc44.patch @@ -0,0 +1,56 @@ +--- src/lib/tool/commonfuncs.cxx.orig 2009-07-15 21:19:42.000000000 -0400 ++++ src/lib/tool/commonfuncs.cxx 2009-07-15 21:23:58.000000000 -0400 +@@ -117,9 +117,9 @@ + } + + //Get first content of dirname +-char* get_first_content(const char *curdir, char *cont) ++const char* get_first_content(const char *curdir, char *cont) + { +- char *b=strchr(curdir,'/'); ++ const char *b=strchr(curdir,'/'); + if(b) + { + strncpy(cont,curdir,b-curdir); +--- src/include/commonfuncs.h.orig 2009-07-15 21:24:37.000000000 -0400 ++++ src/include/commonfuncs.h 2009-07-15 21:25:04.000000000 -0400 +@@ -15,7 +15,7 @@ + extern int path_to_fullpath(char* dest, char *srcdir); + extern void add_path_content(char *curdir, const char *cont, int vms_host=0); + extern void upper_path(char *curdir, int vms_host=0); +-extern char* get_first_content(const char *curdir, char *cont); ++extern const char* get_first_content(const char *curdir, char *cont); + extern void get_last_content(char *curdir, char *cont); + extern void get_last_and_rest_content(char* curdir, char* last, char* rest); + extern void str_swap(char *str1, char *str2); +--- src/lib/vfs/afs.cxx.orig 2009-07-15 21:47:44.000000000 -0400 ++++ src/lib/vfs/afs.cxx 2009-07-15 21:50:02.000000000 -0400 +@@ -29,7 +29,7 @@ + // The return value is static, so copy it before using the + // method again! + +-char *create_dirs(char *rootdir, char* dirlist) ++char *create_dirs(char *rootdir, const char* dirlist) + { + char str[L_MAXPATH]; + char cont[FLIST_NAME]; +@@ -1350,7 +1350,7 @@ + add_path_content(curdir, to_dir); + } else //If we here then we doing cd not to subdir but to subdir/subdir... + { +- char *s=to_dir; ++ const char *s=to_dir; + if(*s) + { + do +--- src/lib/vfs/ftpfs.cxx.orig 2009-07-15 21:50:48.000000000 -0400 ++++ src/lib/vfs/ftpfs.cxx 2009-07-15 21:54:26.000000000 -0400 +@@ -1413,7 +1413,7 @@ + return; + if(strcmp(dir,"/")) + { +- char *s=dir; ++ const char *s=dir; + if(*s=='/') //Skip leading '/' + s++; + do |