summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e2d6f7900aa436e6ae4cc14ae184cc01e65d104 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor: Nick Ƙstergaard <oe.nick at gmail dot com>

pkgname=fped-git
pkgver=20120106
pkgrel=1
pkgdesc="Footprint Editor for KiCad used by Qi Hardware developers"
arch=('i686' 'x86_64')
url='http://svn.openmoko.org/trunk/eda/fped'
license=('GPL2')
depends=('imagemagick' 'ttf-liberation' 'netpbm' 'gtk2' 'flex' 'transfig' 'desktop-file-utils')
makedepends=('git')
provides=('fped')
conflicts=('fped' 'fped-svn')
replaces=('fped' 'fped-svn')
install=('fped.install')
source=(fped.png
		fped.desktop)
md5sums=('378b510a463478d8a48272cdf1a69e51'
         'adb6d02938f257b44b54c0d7724e8968')

_gitroot=git://projects.qi-hardware.com/fped.git
_gitname=fped

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #
  make
}

package() {
  cd "$srcdir/$_gitname-build"
  make  PREFIX=$pkgdir/usr install

  mkdir -p ${pkgdir}/usr/share/applications/
  install -m644 ${srcdir}/fped.desktop ${pkgdir}/usr/share/applications/fped.desktop
  mkdir -p ${pkgdir}/usr/share/pixmaps/
  install -m644 ${srcdir}/fped.png ${pkgdir}/usr/share/pixmaps/fped.png

}

# vim:set ts=2 sw=2 et: