summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjapernilater2015-07-01 21:17:42 -0500
committerjapernilater2015-07-01 21:17:42 -0500
commit90a5090f09ddb756f1ba4455ff84edfa31d022cc (patch)
treeea7c0d4d853c739505031539bfce3ae55e7bb380
downloadaur-90a5090f09ddb756f1ba4455ff84edfa31d022cc.tar.gz
Initial import
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD33
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e02f75f7483
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = opentx-companion
+ pkgdesc = EEPROM Editor for OpenTX RC transmitter firmwares
+ pkgver = 2.0.17
+ pkgrel = 2
+ url = http://www.open-tx.org/
+ arch = x86_64
+ license = GPL
+ makedepends = subversion
+ makedepends = cmake
+ makedepends = xsd
+ makedepends = python-pyqt4
+ makedepends = bc
+ makedepends = python2
+ makedepends = avr-gcc
+ makedepends = avr-libc
+ makedepends = sed
+ depends = phonon
+ depends = qt4
+ depends = sdl
+ provides = companion
+ conflicts = companion
+ conflicts = companion9x-svn
+ source = https://github.com/opentx/opentx/archive/2.0.17.tar.gz
+ md5sums = 3ff4ec65fd1edadf69a2fa177ecccdd1
+
+pkgname = opentx-companion
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9843c7d7a2f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Jeff Youdontneedtoknow <jeffpublicjr at gmail dot com>
+pkgname=opentx-companion
+pkgver=2.0.17
+pkgrel=2
+pkgdesc="EEPROM Editor for OpenTX RC transmitter firmwares"
+arch=('x86_64')
+url="http://www.open-tx.org/"
+license=('GPL')
+depends=('phonon' 'qt4' 'sdl')
+makedepends=('subversion' 'cmake' 'xsd' 'python-pyqt4' 'bc' 'python2' 'avr-gcc' 'avr-libc' 'sed')
+provides=('companion')
+conflicts=('companion' 'companion9x-svn')
+source=(https://github.com/opentx/opentx/archive/$pkgver.tar.gz)
+md5sums=('3ff4ec65fd1edadf69a2fa177ecccdd1')
+
+build() {
+ sed -i -e 's/env python/env python2.7/' $srcdir/opentx-$pkgver/radio/util/*.py
+ sed -i -e 's/@python/@python2.7/' $srcdir/opentx-$pkgver/radio/src/Makefile
+ cd $srcdir/opentx-$pkgver/companion
+ mkdir lbuild
+ cd lbuild
+ cmake ../src
+ make clean
+ make
+ sed -i -e 's/Categories=Application/Categories=Development;/' $srcdir/opentx-$pkgver/companion/src/companion.desktop
+}
+
+package() {
+ cd $srcdir/opentx-$pkgver/companion/
+ install -Dm755 lbuild/companion $pkgdir/usr/bin/companion
+ install -Dm644 src/companion.desktop $pkgdir/usr/share/applications/companion.desktop
+ install -Dm644 src/icon.png $pkgdir/usr/share/icons/companion.png
+} \ No newline at end of file