summaryrefslogtreecommitdiff
path: root/community/synce-vdccm/PKGBUILD
blob: ef43928d73596aae890c06bcd9e5f7e587dd6bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 17750 2010-05-24 21:46:24Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zhukov Pavel <gelios@gmail.com>

pkgname=synce-vdccm
pkgver=0.10.1
pkgrel=2
pkgdesc="provide a means of communication with a Windows CE device - daemon to communicate with a handheld device"
arch=('i686' 'x86_64')
url="http://synce.sourceforge.net/"
license=('GPL')
depends=('synce-libsynce')
source=(http://downloads.sourceforge.net/synce/vdccm-$pkgver.tar.gz)
md5sums=('43bca4c2fdb658f99b07549fa03832e0')

build() {
  cd $srcdir/vdccm-$pkgver
  ./configure --prefix=/usr
  sed -i 's#-pedantic-errors##' Makefile.in src/Makefile.in Makefile src/Makefile
  sed -i '1,1i#include <string.h>' lib/tcpsocket.cpp lib/tcpconnectedsocket.cpp lib/tcpclientsocket.cpp lib/udpsocket.cpp src/rapiclient.cpp
  sed -i '1,1i#include <stdint.h>' lib/udpsocket.h src/rapiclient.h
  sed -i '1,1i#include <limits.h>' src/rapiclient.h
  sed -i '1,1i#include <stdio.h>' src/rapiconnection.cpp
  make || return 1
  make DESTDIR=$pkgdir install || return 1
}