diff options
author | Patrik Bachan | 2020-11-07 14:38:47 +0100 |
---|---|---|
committer | Patrik Bachan | 2020-11-07 14:38:47 +0100 |
commit | a62a6a813b188b78403af49e952f263bc9da394a (patch) | |
tree | b4248d770a5efd80dc54abded848e4bead3339b1 | |
download | aur-a62a6a813b188b78403af49e952f263bc9da394a.tar.gz |
Initial version of PKGBUILD
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | asammdf.desktop | 8 |
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a69ff604018c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = asammdf-git + pkgdesc = fast parser and editor for ASAM MDF files including GUI + pkgver = r2489.c3ea7216 + pkgrel = 1 + url = https://github.com/danielhrisca/asammdf + arch = x86_64 + license = LGPL3 + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-pandas + depends = python-natsort + depends = python-numpy + depends = python-numexpr + depends = python-cchardet + depends = python-lxml + depends = python-lz4 + depends = hicolor-icon-theme + optdepends = python-h5py: for HDF5 export + optdepends = python-scipy: for Matlab v4 and v5 .mat export + optdepends = python-hdf5storage: for Matlab v7.3 .mat export + optdepends = python-fastparquet: for parquet export + optdepends = python-pyqt5: for GUI tool + optdepends = python-pyqtgraph: for GUI tool and Signal plotting + optdepends = python-matplotlib: as fallback for Signal plotting + conflicts = asammdf + source = asammdf-git::git+https://github.com/danielhrisca/asammdf.git + source = asammdf.desktop + sha1sums = SKIP + sha1sums = 1de91708f408409745be839e42cca1696940df3e + +pkgname = asammdf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bbf82a49b141 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Patrik Bachan <patrikbachan at gmail dot com> +pkgname=asammdf-git +pkgver=r2489.c3ea7216 +pkgrel=1 +pkgdesc="fast parser and editor for ASAM MDF files including GUI" +arch=('x86_64') # should build any run on any architecture with C compiler, but PKG is them arch. specific +url="https://github.com/danielhrisca/asammdf" +license=('LGPL3') +groups=() +depends=('python' 'python-pandas' 'python-natsort' 'python-numpy' 'python-numexpr' 'python-cchardet' 'python-lxml' 'python-lz4' 'hicolor-icon-theme') +makedepends=('git' 'python-setuptools') +optdepends=( + 'python-h5py: for HDF5 export' + 'python-scipy: for Matlab v4 and v5 .mat export' + 'python-hdf5storage: for Matlab v7.3 .mat export' + 'python-fastparquet: for parquet export' + 'python-pyqt5: for GUI tool' + 'python-pyqtgraph: for GUI tool and Signal plotting' + 'python-matplotlib: as fallback for Signal plotting' +) +source=("${pkgname}"'::git+https://github.com/danielhrisca/asammdf.git' + 'asammdf.desktop') +sha1sums=('SKIP' + '1de91708f408409745be839e42cca1696940df3e') +conflicts=('asammdf') + +pkgver() { + cd "$srcdir/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname}" + python setup.py build +} + +package() { + cd "$srcdir/${pkgname}" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + desktop-file-install \ + --dir="$pkgdir/usr/share/applications" "$srcdir/asammdf.desktop" + install -D -m644 "asammdf.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/asammdf.png" +} diff --git a/asammdf.desktop b/asammdf.desktop new file mode 100644 index 000000000000..9c02fca4d379 --- /dev/null +++ b/asammdf.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=asammdf +Comment=Fast Python reader and editor for ASAM MDF / MF4 +Icon=asammdf +Exec=asammdf +Terminal=false +Type=Application +Categories=Development |