diff options
author | Zoe Boele | 2020-09-24 23:39:06 +0200 |
---|---|---|
committer | Zoe Boele | 2020-09-24 23:39:06 +0200 |
commit | cc2813462f3c99cbb670effad257dafe726daa86 (patch) | |
tree | 277c0e315898001d417543eb81fdf35b29ab4933 | |
parent | 3ee4d0f77f4c8e743be641ff5105821661fe7329 (diff) | |
download | aur-cc2813462f3c99cbb670effad257dafe726daa86.tar.gz |
rewrite by caltlgin
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 53 insertions, 32 deletions
@@ -1,24 +1,29 @@ pkgbase = ktechlab - pkgdesc = IDE for microcontrollers and electronic simulation. + pkgdesc = IDE for microcontrollers and electronic simulation pkgver = 0.50.0 pkgrel = 1 - url = https://cgit.kde.org/ktechlab.git + url = https://invent.kde.org/sdk/ktechlab arch = x86_64 - arch = i686 - license = GPL - makedepends = git - makedepends = cmake - makedepends = gendesk - makedepends = automoc4 - depends = kdelibs - depends = gpsim + license = GPL2 + makedepends = extra-cmake-modules + depends = hicolor-icon-theme + depends = kconfig + depends = kcoreaddons + depends = kdoctools depends = khtml + depends = kiconthemes + depends = ki18n + depends = kio + depends = kparts depends = ktexteditor - depends = kdebase-runtime + depends = ktextwidgets + depends = solid + depends = kwidgetsaddons + depends = kwindowsystem + depends = kxmlgui depends = qt5-base optdepends = gpsim: for simulating PIC microcontrollers source = https://download.kde.org/unstable/ktechlab/ktechlab-0.50.0.tar.xz - md5sums = 5efe09b276fad08d74ead245a597797d sha256sums = cf0fe078f8afad7f3237a4e052dd2cace185d390a02f15ebe60cccabcbe8fdfe pkgname = ktechlab @@ -1,31 +1,47 @@ # Maintainer: zoe <aur at fully dot automated dot ee ignore everything else after the first ee> -pkgname=ktechlab +# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='ktechlab' pkgver=0.50.0 pkgrel=1 -pkgdesc="IDE for microcontrollers and electronic simulation." -arch=('x86_64' 'i686') -url="https://cgit.kde.org/ktechlab.git" -license=('GPL') -depends=('kdelibs' 'gpsim' 'khtml' 'ktexteditor' 'kdebase-runtime' 'qt5-base') -makedepends=('git' 'cmake' 'gendesk' 'automoc4') +pkgdesc='IDE for microcontrollers and electronic simulation' +arch=('x86_64') +url="https://invent.kde.org/sdk/ktechlab" +license=('GPL2') +depends=('hicolor-icon-theme' + 'kconfig' + 'kcoreaddons' + 'kdoctools' + 'khtml' + 'kiconthemes' + 'ki18n' + 'kio' + 'kparts' + 'ktexteditor' + 'ktextwidgets' + 'solid' + 'kwidgetsaddons' + 'kwindowsystem' + 'kxmlgui' + 'qt5-base') +makedepends=('extra-cmake-modules') optdepends=('gpsim: for simulating PIC microcontrollers') -source=(https://download.kde.org/unstable/ktechlab/ktechlab-$pkgver.tar.xz) -md5sums=('5efe09b276fad08d74ead245a597797d') +source=("https://download.kde.org/unstable/${pkgname}/${pkgname}-${pkgver}.tar.xz") sha256sums=('cf0fe078f8afad7f3237a4e052dd2cace185d390a02f15ebe60cccabcbe8fdfe') build() { - cd ktechlab-$pkgver - if [ ! -d build ]; then - mkdir build - fi - cd build - cmake .. - make + export CFLAGS+=" ${CPPFLAGS}" + export CXXFLAGS+=" ${CPPFLAGS}" + cmake -B build -S "${pkgname}-${pkgver}" \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make -C build } package() { - cd $srcdir/ktechlab-$pkgver/build - make DESTDIR="$pkgdir" install - install -d $pkgdir/usr/share/pixmaps - install -m664 $srcdir/ktechlab-$pkgver/icons/128-apps-ktechlab.png $pkgdir/usr/share/pixmaps/$pkgname-icon.png + make DESTDIR="${pkgdir}" PREFIX="/usr" -C build install } + +# vim: ts=2 sw=2 et: + |