summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Østergaard2012-01-05 23:54:46 +0100
committerNick Østergaard2012-01-05 23:54:46 +0100
commitabb04bca07c288f402bd2acb33da894a01559d1d (patch)
tree3baf7a1a8f24a70cb44e0945c53a81f60e85ac3c
downloadaur-abb04bca07c288f402bd2acb33da894a01559d1d.tar.gz
Initial import of the blingy bling new fped-git
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD62
-rw-r--r--fped.desktop10
-rw-r--r--fped.install11
-rw-r--r--fped.pngbin0 -> 450 bytes
5 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..75b54d8a053
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = fped-git
+ pkgdesc = Footprint Editor for KiCad used by Qi Hardware developers
+ pkgver = 20120105
+ pkgrel = 1
+ url = http://svn.openmoko.org/trunk/eda/fped
+ install = fped.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ depends = imagemagick
+ depends = ttf-liberation
+ depends = netpbm
+ depends = gtk2
+ depends = flex
+ depends = transfig
+ depends = desktop-file-utils
+ provides = fped
+ conflicts = fped
+ conflicts = fped-svn
+ replaces = fped
+ replaces = fped-svn
+ source = fped.png
+ source = fped.desktop
+ md5sums = 378b510a463478d8a48272cdf1a69e51
+ md5sums = adb6d02938f257b44b54c0d7724e8968
+
+pkgname = fped-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..08ab9260174
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Contributor: Nick Østergaard <oe.nick at gmail dot com>
+
+pkgname=fped-git
+pkgver=20120105
+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
+
+##_svnmod="fped"
+##_svntrunk="http://svn.openmoko.org/trunk/eda/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:
diff --git a/fped.desktop b/fped.desktop
new file mode 100644
index 00000000000..228a48b9115
--- /dev/null
+++ b/fped.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Categories=Education;Science;
+Comment=KiCad PCB footprint editor.
+Exec=fped
+GenericName=Footprint Editor
+Icon=fped
+MimeType=application/x-fped-footprint;
+Name=Fped
+Type=Application
+
diff --git a/fped.install b/fped.install
new file mode 100644
index 00000000000..1281623f598
--- /dev/null
+++ b/fped.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
diff --git a/fped.png b/fped.png
new file mode 100644
index 00000000000..e1f6c5e8d6b
--- /dev/null
+++ b/fped.png
Binary files differ