summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD44
2 files changed, 18 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ad463b6e0a..143870ca29c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = fped-git
pkgdesc = Footprint Editor for KiCad used by Qi Hardware developers
- pkgver = 20130217
+ pkgver = a
pkgrel = 1
url = http://projects.qi-hardware.com/index.php/p/fped/
install = fped.install
@@ -20,8 +20,10 @@ pkgbase = fped-git
conflicts = fped-svn
replaces = fped
replaces = fped-svn
+ source = git://projects.qi-hardware.com/fped.git
source = fped.png
source = fped.desktop
+ md5sums = SKIP
md5sums = 378b510a463478d8a48272cdf1a69e51
md5sums = adb6d02938f257b44b54c0d7724e8968
diff --git a/PKGBUILD b/PKGBUILD
index 2a8dcbe55fc..ed93efac43b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,9 @@
# Contributor: Nick Ƙstergaard <oe.nick at gmail dot com>
+# Contributor: Swift Geek <swift geek a t g mail dot com>
pkgname=fped-git
-pkgver=20130217
+_pkgname=fped
+pkgver=a
pkgrel=1
pkgdesc="Footprint Editor for KiCad used by Qi Hardware developers"
arch=('i686' 'x86_64')
@@ -13,45 +15,29 @@ provides=('fped')
conflicts=('fped' 'fped-svn')
replaces=('fped' 'fped-svn')
install=fped.install
-source=(fped.png
- fped.desktop)
-md5sums=('378b510a463478d8a48272cdf1a69e51'
+source=('git://projects.qi-hardware.com/fped.git'
+ 'fped.png'
+ 'fped.desktop')
+md5sums=('SKIP'
+ '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"
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-parse --short HEAD # Github-like shortened hash
+}
- #
- # BUILD HERE
- #
+build(){
+ cd "$srcdir/$_pkgname"
make
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/${_pkgname}"
make PREFIX=$pkgdir/usr install
install -Dm644 ${srcdir}/fped.desktop ${pkgdir}/usr/share/applications/fped.desktop
install -Dm644 ${srcdir}/fped.png ${pkgdir}/usr/share/pixmaps/fped.png
-
}
# vim:set ts=2 sw=2 et: