summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKeziolio2018-10-02 23:00:42 +0200
committerKeziolio2018-10-02 23:00:42 +0200
commit0993c37100a906a37d9f820de3391b5b2b8a0a1b (patch)
tree8bf3e3dad9a3ee64e7a9d24badf3aa067e411597 /PKGBUILD
downloadaur-0993c37100a906a37d9f820de3391b5b2b8a0a1b.tar.gz
initialize
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58da9695763
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Kezi <keziolio123@gmail.com>
+
+pkgname=xaxaxa-vna-git
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="a simple and cheap vector network analyzer's support software"
+arch=('any')
+url="https://github.com/xaxaxa-dev/vna"
+license=('GPL2')
+groups=()
+depends=('eigen' 'fftw' 'qt5-charts')
+makedepends=('git' 'make' 'gcc' 'automake' 'libtool')
+provides=('')
+conflicts=('')
+replaces=()
+backup=()
+options=()
+install=
+source=()
+noextract=()
+md5sums=()
+
+
+_gitroot="https://github.com/xaxaxa-dev/vna.git"
+_gitname="vna"
+
+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 --recursive "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+
+ autoreconf --install
+ ./configure
+ make
+ cd libxavna/xavna_mock_ui/
+ qmake
+ make
+
+
+ cd "$srcdir/$_gitname-build"
+ cd vna_qt
+ qmake
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build/"
+ mkdir -p $pkgdir/usr/lib
+ mkdir -p $pkgdir/usr/bin
+
+ cp libxavna/.libs/libxavna.so.0 $pkgdir/usr/lib/
+ cp libxavna/xavna_mock_ui/libxavna_mock_ui.so.1 $pkgdir/usr/lib/
+ cp vna_qt/vna_qt $pkgdir/usr/bin/
+}