[arch-commits] Commit in (5 files)

David Runge dvzrv at archlinux.org
Thu May 7 22:27:44 UTC 2020


    Date: Thursday, May 7, 2020 @ 22:27:43
  Author: dvzrv
Revision: 625502

Adding oscpack for amsynth.

Added:
  oscpack/
  oscpack/repos/
  oscpack/trunk/
  oscpack/trunk/PKGBUILD
  oscpack/trunk/oscpack-1.1.0-makefile.patch

------------------------------+
 PKGBUILD                     |   35 +++++++++++++++++++++++++++++++++++
 oscpack-1.1.0-makefile.patch |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Added: oscpack/trunk/PKGBUILD
===================================================================
--- oscpack/trunk/PKGBUILD	                        (rev 0)
+++ oscpack/trunk/PKGBUILD	2020-05-07 22:27:43 UTC (rev 625502)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_version=1_1_0
+pkgname=oscpack
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Open Sound Control packet manipulation library"
+arch=('x86_64')
+url="https://github.com/RossBencina/oscpack"
+license=('GPL')
+depends=('gcc-libs' 'glibc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/RossBencina/${pkgname}/archive/release_${_version}.tar.gz"
+        "$pkgname-1.1.0-makefile.patch")
+sha512sums=('7a61a364cab4914c81e113d7aeee2b4accf5e560f500df6634232e0093f564ed4bb0ef8e87d2c8a18f245b0c7ec25f41e64f42f20a6654c22bb5c02aa253bbd0'
+            '6a092a5eae7c52001175b59cb86bbbce0a8d565730edf38d8bcd18ed30ae1a0de4766a735a4a5702fa4210355b884a6f28991bfcba31b17be403d5c553c08b2c')
+
+prepare() {
+  mv -v "$pkgname-release_${_version}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # fixing makefile to include -fPIC when compiling, honoring LDFLAGS during
+  # linking and using DESTDIR during install
+  patch -Np1 -i "../$pkgname-1.1.0-makefile.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  make PREFIX=/usr
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" PREFIX=/usr install
+  install -vDm 644 {CHANGES,README,TODO} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}

Added: oscpack/trunk/oscpack-1.1.0-makefile.patch
===================================================================
--- oscpack/trunk/oscpack-1.1.0-makefile.patch	                        (rev 0)
+++ oscpack/trunk/oscpack-1.1.0-makefile.patch	2020-05-07 22:27:43 UTC (rev 625502)
@@ -0,0 +1,41 @@
+diff -ruN a/Makefile b/Makefile
+--- a/Makefile	2013-04-09 03:53:29.000000000 +0200
++++ b/Makefile	2020-05-07 23:35:37.658428769 +0200
+@@ -16,7 +16,7 @@
+ 
+ CXX := g++
+ INCLUDES := -I.
+-COPTS  := -Wall -Wextra -O3
++COPTS  := -Wall -Wextra -O3 -fPIC
+ CDEBUG := -Wall -Wextra -g 
+ CXXFLAGS := $(COPTS) $(INCLUDES) -D$(ENDIANESS)
+ 
+@@ -111,23 +111,18 @@
+ 	$(CXX) -dynamiclib -Wl,-install_name,$(LIBSONAME) -o $(LIBFILENAME) $(LIBOBJECTS) -lc
+ else
+ 	#GNU/Linux case
+-	$(CXX) -shared -Wl,-soname,$(LIBSONAME) -o $(LIBFILENAME) $(LIBOBJECTS) -lc
++	$(CXX) -shared -Wl,-soname,$(LIBSONAME) -o $(LIBFILENAME) $(LIBOBJECTS) -lc $(LDFLAGS)
+ endif
+ 
+ lib: $(LIBFILENAME)
+ 
+ #Installs the library on a system global location
+ install: $(LIBFILENAME)
+-	@$(INSTALL) -m 755 $(LIBFILENAME) $(PREFIX)/lib/$(LIBFILENAME)
+-	@ln -s -f $(PREFIX)/lib/$(LIBFILENAME) $(PREFIX)/lib/$(LIBSONAME) 
+-	@mkdir  -p $(PREFIX)/include/oscpack/ip $(PREFIX)/include/oscpack/osc
+-	@$(INSTALL) -m 644 ip/*.h $(PREFIX)/include/oscpack/ip
+-	@$(INSTALL) -m 644 osc/*.h $(PREFIX)/include/oscpack/osc
++	@$(INSTALL) -vDm 755 $(LIBFILENAME) $(DESTDIR)/$(PREFIX)/lib/$(LIBFILENAME)
++	@ln -sfv $(LIBFILENAME) $(DESTDIR)/$(PREFIX)/lib/$(LIBSONAME)
++	@$(INSTALL) -vDm 644 ip/*.h -t $(DESTDIR)/$(PREFIX)/include/oscpack/ip
++	@$(INSTALL) -vDm 644 osc/*.h -t $(DESTDIR)/$(PREFIX)/include/oscpack/osc
+ 	@echo "SUCCESS! oscpack has been installed in $(PREFIX)/lib and $(PREFIX)/include/ospack/"
+-ifneq ($(UNAME), Darwin)
+-	@echo "now doing ldconfig..."
+-	@ldconfig
+-endif
+ 
+ #Installs the include/lib structure locally
+ install-local: $(LIBFILENAME)


More information about the arch-commits mailing list