diff options
author | d.sokol | 2022-06-10 18:07:17 +0300 |
---|---|---|
committer | d.sokol | 2022-06-10 18:07:17 +0300 |
commit | d163b366697456fea1df556b4517d16193135fee (patch) | |
tree | 71c322adba2a298c5b9c853bcfb92033563dcc30 | |
parent | 74e96fbb9fdaf7b984e38da7f7995770cad1a743 (diff) | |
download | aur-d163b366697456fea1df556b4517d16193135fee.tar.gz |
new version for backward compatibility
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 64 |
2 files changed, 37 insertions, 44 deletions
@@ -1,17 +1,16 @@ pkgbase = smokegen-git - pkgdesc = A general purpose C++ parser with a plugin infrastructure - pkgver = 20150630 + pkgdesc = A general purpose C++ parser with a plugin infrastructure. It is currently used for generating the various SMOKE libraries + pkgver = 4.14.3 pkgrel = 1 - url = http://kde.org/ arch = i686 arch = x86_64 license = GPL - license = LGPL - license = FDL - makedepends = cmake - makedepends = automoc4 makedepends = git - conflicts = kdebindings-smokegen + makedepends = cmake + depends = qt4 + provides = smokegen-git + conflicts = smokegen-git + source = git+https://github.com/KDE/smokegen.git + md5sums = SKIP pkgname = smokegen-git - @@ -1,47 +1,41 @@ +# Maintainer: Aquarius <aquarius24 AT yandex DOT ru> # Maintainer: AudioLinux <audiolinux AT fastmail DOT fm> # Contributor: Cvetoslav Ludmiloff <ludmiloff@gmail.com> -pkgname=smokegen-git -pkgver=20150630 +_name=smokegen + +pkgname=$_name-git +pkgver=4.14.3 pkgrel=1 -pkgdesc="A general purpose C++ parser with a plugin infrastructure" -url="http://kde.org/" +pkgdesc="A general purpose C++ parser with a plugin infrastructure. It is currently used for generating the various SMOKE libraries" arch=('i686' 'x86_64') -license=('GPL' 'LGPL' 'FDL') -depends=('') -makedepends=('cmake' 'automoc4' 'git') -conflicts=('kdebindings-smokegen') +url="" +license=('GPL') +groups=() +depends=('qt4') +makedepends=('git' 'cmake') +provides=("$pkgname") +conflicts=("$pkgname") +source=("git+https://github.com/KDE/smokegen.git") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_name" + +# Git, tags available + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} -_gitroot="git://anongit.kde.org/smokegen" -_gitname="smokegen" 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 $_gitroot $_gitname - cd "${_gitname}" - fi - - if [ ! -d build ]; then - mkdir build - fi - - cd build - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr - - numprocs=`cat /proc/cpuinfo | grep processor | wc -l` - make -j `expr ${numprocs} + 1` + mkdir "$srcdir/$_name/build" + cd "$srcdir/$_name/build" + cmake ../ + make } package() { - cd "${_gitname}"/build - pwd - make DESTDIR="${pkgdir}" install + cd "$srcdir/$_name/build" + make DESTDIR="$pkgdir/" install } |