Skip to content
Snippets Groups Projects
Commit 95ac638f authored by Tomáš Pecka's avatar Tomáš Pecka Committed by Jan Trávníček
Browse files

Extra: PKGBUILD for aur/obs

parent 33632b06
No related branches found
No related tags found
No related merge requests found
# Maintainer: Tomas Pecka <peckato1 at fit dot cvut dot cz>
 
_pkgname=automata-library
pkgname="automata-library-git"
pkgver=382b3ed3fa
pkgname="algorithms-library"
pkgver=0.0.1
pkgrel=1
pkgdesc='Automata library is a collection of tools for manipulating with formal languages and graphs'
arch=('i686' 'x86_64')
url='http://gitlab.fit.cvut.cz/travnja3/automata-library'
pkgdesc='Theoretical computer science datastructures and algorithms implementation. The library provides graphical and console interface similar to bash with many classical algorithms manipulating automata, grammars, regular expressions, trees and strings.'
arch=('x86_64')
url='https://gitlab.fit.cvut.cz/algorithms-library-toolkit/'
license=('GPL')
depends=('tclap' 'libxml2')
optdepends=('graphviz: Graph visualization software')
makedepends=('git' 'make' 'cppunit')
depends=('tclap' 'libxml2' 'readline' 'qt5-base' 'graphviz' 'jsoncpp')
makedepends=('python3' 'cmake' 'gcc' 'bash' 'make' 'cppunit' 'tclap')
patch=('remove-werror.patch')
provides=()
conflicts=()
source=("git+https://gitlab.fit.cvut.cz/algorithms-library-toolkit/$_pkgname.git")
sha256sums=("SKIP")
pkgver() {
cd $_pkgname
git rev-parse --verify HEAD | cut -c 1-10
}
source=("algorithms-library-v0.0.2.tar.gz")
sha256sums=('SKIP')
 
build() {
cd "${srcdir}"/$pkgname-$pkgver
./CMake/generate.py -wm
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DALIB_PRODUCTION=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make -j $(grep -c processor /proc/cpuinfo)
}
 
cd $_pkgname
make release RUN_TESTS=0
check() {
cd "${srcdir}"/$pkgname-$pkgver
cd build
make test
}
 
package() {
# actual installation
for file in `ls $_pkgname/bin-release`; do
if [[ $file =~ ^lib.*\.so$ ]]; then
install -D -m755 $_pkgname/bin-release/$file $pkgdir/usr/lib/$file
else
install -D -m755 $_pkgname/bin-release/$file $pkgdir/usr/bin/$file
fi
done
cd "${srcdir}"/$pkgname-$pkgver
cd build
make DESTDIR="${pkgdir}" install
#install -D -m644 LICENSE $pkgdir/usr/share/licenses/${_pkgname}/LICENSE
}
 
../aur/PKGBUILD
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment