add initial package build scripts for Arch Linux from Bob Finch
authorBdale Garbee <bdale@gag.com>
Wed, 12 May 2010 22:28:35 +0000 (16:28 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 12 May 2010 22:28:35 +0000 (16:28 -0600)
contrib/arch-linux/PKGBUILD-git.altos [new file with mode: 0644]
contrib/arch-linux/PKGBUILD-git.nickle [new file with mode: 0644]
contrib/arch-linux/README [new file with mode: 0644]

diff --git a/contrib/arch-linux/PKGBUILD-git.altos b/contrib/arch-linux/PKGBUILD-git.altos
new file mode 100644 (file)
index 0000000..f0fe45f
--- /dev/null
@@ -0,0 +1,53 @@
+# Contributor: Bob Finch <w9ya@qrpqrci.net>
+pkgname=altos-git
+pkgver=VERSION
+pkgrel=1
+pkgdesc="Software solutions for high powered rocketry avionics"
+arch=('i686' 'x86_64')
+url="http://www.altusmetrum.org/AltOS/"
+license=('GPL')
+depends=('openssl>=1.0.0' 'libusb-BETA' 'plplot-svn' 'sdcc' 'nickle' 'flite' 'kernel26>=2.6.33')
+makedepends=('git')
+optdepends=('uucp: cu is included and is a bare boned terminal to serial program'
+            'cutemon: gui-based minimal terminal to serial program'
+            'google-earth: useful for viewing the kml files of the flight path'
+            'docbook-xsl: for making an html doc file from the xsl source'
+            'fop: for making a pdf doc file from the xsl source')
+source=(altos.desktop)
+md5sums=('7308c5b015991046b195d1a2c0987004')
+
+_gitroot="git://git.gag.com/fw/altos"
+_gitname="altos"
+
+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
+  fi
+
+#  msg "GIT checkout done or server timeout"
+#  msg "Starting make..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+
+  #
+  # BUILD HERE
+  #
+
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR="$pkgdir/" install
+  
+  mkdir -p $startdir/pkg/usr/share/pixmaps
+  mkdir -p $startdir/pkg/usr/share/applications
+  install -m644 debian/*.xpm $startdir/pkg/usr/share/pixmaps
+  install -m644 ../*.desktop $startdir/pkg/usr/share/applications
+} 
diff --git a/contrib/arch-linux/PKGBUILD-git.nickle b/contrib/arch-linux/PKGBUILD-git.nickle
new file mode 100644 (file)
index 0000000..2f1515e
--- /dev/null
@@ -0,0 +1,43 @@
+# Contributor: Bob Finch <w9ya@qrpqrci.net>
+pkgname=nickle-git
+pkgver=20100507
+pkgrel=1
+pkgdesc="A desk calculator language with powerful programming and scripting capabilities."
+arch=('i686' 'x86_64')
+url="http://keithp.com/git-repository/"
+license=('custom')
+makedepends=('git')
+
+_gitroot="git://keithp.com/git/nickle"
+_gitname="nickle"
+
+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
+  fi
+
+#  msg "GIT checkout done or server timeout"
+#  msg "Starting make..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+
+  #
+  # BUILD HERE
+  #
+
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR="$pkgdir/" install
+  
+  install -D -m 644 $startdir/src/COPYING\
+     $startdir/pkg/usr/share/licenses/$pkgname/COPYING.txt
+} 
diff --git a/contrib/arch-linux/README b/contrib/arch-linux/README
new file mode 100644 (file)
index 0000000..5282d4f
--- /dev/null
@@ -0,0 +1,5 @@
+These files were contributed by Bob Finch <w9ya@qrpqrci.net>, and demonstrate
+how to build packages for the Arch Linux distribution:
+
+       http://www.archlinux.org/
+