summaryrefslogtreecommitdiff
path: root/community/synce-libmimedir/PKGBUILD
blob: 51a0b2b1dedb840db4d1260fb62ea70a32088abf (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
27
28
29
30
31
# $Id: PKGBUILD 115278 2014-07-07 10:04:38Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zhukov Pavel <gelios@gmail.com>

pkgname=synce-libmimedir
pkgver=0.4
pkgrel=7
pkgdesc="provide a means of communication with a Windows CE device - library that parses MIME Directory Profile."
arch=('i686' 'x86_64')
url="http://synce.sourceforge.net/"
license=('GPL')
options=('staticlibs')
source=(http://downloads.sourceforge.net/sourceforge/synce/libmimedir-$pkgver.tar.gz)
md5sums=('156e1eb69377d9ae9180a09e38148ec6')

build() {
  cd $srcdir/libmimedir-$pkgver
  if [ "$CARCH" = "x86_64" ]; then
    sed -i -e 's|Wall|Wall -fPIC -DPIC|g' Makefile.in
    ./configure --prefix=/usr --with-pic
  else
    ./configure --prefix=/usr
  fi
  make
}

package() {
  cd $srcdir/libmimedir-$pkgver
  mkdir -p $pkgdir/usr/{include,lib}
  make prefix=$pkgdir/usr install
}