Date: Wednesday, June 8, 2016 @ 10:54:04
  Author: dicebot
Revision: 178591

upgpkg: dcd 0.8.0-2

Adjust DCD makefile to work with new LDC

Added:
  dcd/trunk/objpath.diff
Modified:
  dcd/trunk/PKGBUILD

--------------+
 PKGBUILD     |    9 ++++++---
 objpath.diff |   14 ++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-06-08 08:41:26 UTC (rev 178590)
+++ PKGBUILD    2016-06-08 08:54:04 UTC (rev 178591)
@@ -14,15 +14,18 @@
 makedepends=('ldc>=1.0.0' 'git')
 source=($pkgname-$pkgver::git+https://github.com/Hackerpilot/DCD#tag=v$pkgver
         dcd.service
-        dcd.conf)
+        dcd.conf
+        objpath.diff)
 sha256sums=('SKIP'
             '7d3483ee92e42101d07395775aac5f0b277780f847c3823879fb35d1f2a9fbb3'
-            'fb765020c49a918b157f5be2cabd71c16bbb050ddd762f1e08c84d1eddd4c97b')
+            'fb765020c49a918b157f5be2cabd71c16bbb050ddd762f1e08c84d1eddd4c97b'
+            '69525733f6da1a21ae48c6298fbca85de43e6e2b92372497d2d4c22788f4b885')
 
 prepare() {
   cd "${srcdir}"/$pkgname-$pkgver
   git submodule update --init --recursive
-}  
+  git apply ${srcdir}/objpath.diff
+}
             
 build() {
   cd "${srcdir}"/$pkgname-$pkgver

Added: objpath.diff
===================================================================
--- objpath.diff                                (rev 0)
+++ objpath.diff        2016-06-08 08:54:04 UTC (rev 178591)
@@ -0,0 +1,14 @@
+diff --git a/makefile b/makefile
+index 04e60c2..04e9b4c 100644
+--- a/makefile
++++ b/makefile
+@@ -149,7 +149,8 @@ ldcclient: githash
+       ${LDC} ${CLIENT_SRC} ${LDC_CLIENT_FLAGS}
+ 
+ $(OBJ_DIR)/%.o: $(SERVER_SRC)
+-      $(LDC) $*.d $(LDC_SERVER_FLAGS) -od=$(OBJ_DIR) -op -c
++      echo $@
++      $(LDC) $*.d $(LDC_SERVER_FLAGS) -of=$@ -c
+ 
+ ldcserver: githash $(SERVER_OBJS)
+       ${LDC} ${SERVER_OBJS} ${LDC_SERVER_FLAGS} -of=bin/dcd-server

Reply via email to