[arch-commits] Commit in (5 files)

Andrea Scarpino andrea at nymeria.archlinux.org
Wed Mar 5 14:35:59 UTC 2014


    Date: Wednesday, March 5, 2014 @ 15:35:59
  Author: andrea
Revision: 206881

Moved from AUR

Added:
  libspnav/
  libspnav/repos/
  libspnav/trunk/
  libspnav/trunk/Makefile.patch
  libspnav/trunk/PKGBUILD

----------------+
 Makefile.patch |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 PKGBUILD       |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

Added: libspnav/trunk/Makefile.patch
===================================================================
--- libspnav/trunk/Makefile.patch	                        (rev 0)
+++ libspnav/trunk/Makefile.patch	2014-03-05 14:35:59 UTC (rev 206881)
@@ -0,0 +1,51 @@
+--- libspnav-0.2.2/Makefile.in	2010-03-28 00:24:27.000000000 +0100
++++ a/trunk/libspnav/Makefile.in	2014-03-05 15:33:07.590597866 +0100
+@@ -4,10 +4,12 @@
+ lib_a = libspnav.a
+ soname = libspnav.so.0
+ lib_so = $(soname).1
++devlink = libspnav.so
+ 
+ CC = gcc
+ AR = ar
+-CFLAGS = $(opt) $(dbg) -std=c89 -fpic -pedantic -Wall -fno-strict-aliasing -I.
++CFLAGS = $(opt) $(dbg) -std=c89 -fpic -pedantic -Wall -fno-strict-aliasing -I. -I/usr/local/include $(user_cflags)
++LDFLAGS = $(user_ldflags)
+ 
+ .PHONY: all
+ all: $(lib_a) $(lib_so)
+@@ -16,7 +18,7 @@
+ 	$(AR) rcs $@ $(obj)
+ 
+ $(lib_so): $(obj)
+-	$(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
++	$(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj) $(LDFLAGS)
+ 
+ %.o: $(srcdir)/%.c
+ 	$(CC) $(CFLAGS) -c $< -o $@
+@@ -31,13 +33,19 @@
+ 
+ .PHONY: install
+ install: $(lib_a) $(lib_so)
+-	cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
+-	cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
+-	for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
++	mkdir -p $(DESTDIR)$(PREFIX)/$(libdir) $(DESTDIR)$(PREFIX)/include
++	cp $(lib_a) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_a)
++	cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
++	rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink)
++	ln -s $(PREFIX)/$(libdir)/$(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(soname)
++	ln -s $(PREFIX)/$(libdir)/$(soname) $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink)
++	for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done
+ 
+ .PHONY: uninstall
+ uninstall:
+-	rm -f $(PREFIX)/$(libdir)/$(lib_a)
+-	rm -f $(PREFIX)/$(libdir)/$(lib_so)
+-	for i in $(hdr); do rm -f $(PREFIX)/include/$$i; done
++	rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_a)
++	rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
++	rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(soname)
++	rm -f $(DESTDIR)$(PREFIX)/$(libdir)/$(devlink)
++	for i in $(hdr); do rm -f $(DESTDIR)$(PREFIX)/include/$$i; done
+ 

Added: libspnav/trunk/PKGBUILD
===================================================================
--- libspnav/trunk/PKGBUILD	                        (rev 0)
+++ libspnav/trunk/PKGBUILD	2014-03-05 14:35:59 UTC (rev 206881)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Jan Hambrecht <jaham at gmx dot net>
+
+pkgname=libspnav
+pkgver=0.2.2
+pkgrel=5
+pkgdesc="Alternative to the proprietary 3Dconnexion device driver and SDK for their 3D input devices"
+arch=('i686' 'x86_64')
+url="http://spacenav.sourceforge.net/"
+license=('GPL')
+depends=('glibc')
+source=("http://downloads.sourceforge.net/spacenav/$pkgname-$pkgver.tar.gz"
+        'Makefile.patch')
+md5sums=('b85a0f4ab711e2d4f73a40e2e371f5ae'
+         'cc008ea9f5e1abb870c0e2dbc86c3b86')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p1 -i "${srcdir}"/Makefile.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+    --disable-debug
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}


Property changes on: libspnav/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list