diff options
author | Gonçalo Camelo Neves Pereira | 2018-11-24 02:49:33 +0100 |
---|---|---|
committer | Gonçalo Camelo Neves Pereira | 2018-11-24 02:49:33 +0100 |
commit | acc12f122a7fc584ac3dd950b138da377d27649e (patch) | |
tree | 6b10ce9623a9f5ab321aab8b56697e106ece253e | |
download | aur-acc12f122a7fc584ac3dd950b138da377d27649e.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | libtirpc.patch | 22 | ||||
-rwxr-xr-x | linuxcnc.sh | 1 |
4 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2a311cfdf90f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = linuxcnc + pkgdesc = It can interpret G-code and simulate a CNC machine (formerly EMC2). + pkgver = 2.7.14 + pkgrel = 2 + url = http://linuxcnc.org/ + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = intltool + depends = bc + depends = bwidget + depends = tcl + depends = tk + depends = xorg-server + depends = python2-imaging + depends = tkimg + depends = python2-gtkglext + depends = tclx + depends = boost + depends = boost-libs + depends = libtirpc + depends = procps-ng + depends = psmisc + source = ::git://github.com/LinuxCNC/linuxcnc.git#tag=v2.7.14 + source = linuxcnc.sh + source = libtirpc.patch + sha256sums = 72e4dad9c929b00d2a73d125d86f18600dc1c852abadcd3947fa0a7cbc28c88e + sha256sums = c0f1ea0d8c20baa5d69d89a1d6eb3549bc57cc56ff1a0af3d5b9917cbc6211a7 + sha256sums = 92f63a3f58173fa9463329f74cff7365bfefd937729a70bbdc52684d9252333f + +pkgname = linuxcnc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..45a6e1df69bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Peter Ivanov <ivanovp@gmail.com> +# Contributor: Alec Ari <neotheuser@ymail.com> + +pkgname=linuxcnc +pkgver=2.7.14 +pkgrel=2 +pkgdesc="It can interpret G-code and simulate a CNC machine (formerly EMC2)." +arch=('i686' 'x86_64') +license=('GPL2') +url="http://linuxcnc.org/" +depends=('bc' 'bwidget' 'tcl' 'tk' 'xorg-server' 'python2-imaging' 'tkimg' 'python2-gtkglext' 'tclx' 'boost' 'boost-libs' 'libtirpc' 'procps-ng' 'psmisc') +source=($_gitname::"git://github.com/LinuxCNC/linuxcnc.git#tag=v$pkgver" 'linuxcnc.sh' 'libtirpc.patch') +sha256sums=('72e4dad9c929b00d2a73d125d86f18600dc1c852abadcd3947fa0a7cbc28c88e' + 'c0f1ea0d8c20baa5d69d89a1d6eb3549bc57cc56ff1a0af3d5b9917cbc6211a7' + '92f63a3f58173fa9463329f74cff7365bfefd937729a70bbdc52684d9252333f') +makedepends=('git' 'intltool') +PKGEXT='.pkg.tar' + +build () { + find . -iname fixpaths.py -o -iname checkglade -o -iname update_ini|xargs perl -p -i -e "s/python/python2/" + cd $srcdir/$_gitname/src + + patch -Np2 -i $srcdir/libtirpc.patch + + ./autogen.sh + ./configure --with-realtime=uspace --without-libmodbus --prefix=/usr --with-python=/usr/bin/python2.7 --enable-non-distributable=yes + make +} + +package() { + cd $srcdir/linuxcnc/src + make install DESTDIR=${pkgdir} || return 1 + #Stop hiding it from GNOME + cp -PR $srcdir/linuxcnc/share/applications $pkgdir/usr/share/ + mkdir -p $pkgdir/etc/xdg +# echo To avoid conflict with linux-manpages... +# mv -v $pkgdir/usr/share/man/man9/abs.9.gz $pkgdir/usr/share/man/man9/linuxcnc_abs.9.gz + cp -PR $srcdir/linuxcnc/share/menus $pkgdir/etc/xdg/ + install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh" + ln -s /usr/bin/linuxcnc ~/Desktop/linuxcnc +} + diff --git a/libtirpc.patch b/libtirpc.patch new file mode 100644 index 000000000000..58f1fa1c0486 --- /dev/null +++ b/libtirpc.patch @@ -0,0 +1,22 @@ +diff --git a/src/Makefile b/src/Makefile
+index a99e52686..9b2b5705e 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -139,7 +139,7 @@ ULAPISRCS := rtapi/$(RTPREFIX)_ulapi.c
+
+ # Each item in INCLUDES is transformed into a -I directive later on
+ # The top directory is always included
+-INCLUDES := .
++INCLUDES := . /usr/include/tirpc/
+
+ USERSRCS :=
+ PROGRAMS :=
+@@ -203,6 +203,8 @@ else
+ LDFLAGS := -Wl,-rpath-link,../lib
+ endif
+
++LDFLAGS += -ltirpc
++
+ # Rules to make .o (object) files
+ $(sort $(CUSEROBJS)) : objects/%.o: %.c
+ $(ECHO) Compiling $<
diff --git a/linuxcnc.sh b/linuxcnc.sh new file mode 100755 index 000000000000..95403833bf90 --- /dev/null +++ b/linuxcnc.sh @@ -0,0 +1 @@ +export TCLLIBPATH=$TCLLIBPATH:/usr/lib/tcltk/linuxcnc |