46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
_pkgname=RedPanda-CPP
|
|
pkgname=${_pkgname,,}-git
|
|
pkgver=__VERSION__
|
|
pkgrel=1
|
|
pkgdesc='A fast, lightweight, open source, and cross platform C++ IDE (development version)'
|
|
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'riscv64')
|
|
url="https://github.com/royqh1979/$_pkgname"
|
|
license=('GPL3')
|
|
depends=(qt5-base qt5-svg gcc gdb)
|
|
makedepends=(qt5-tools)
|
|
optdepends=(
|
|
'clang: C/C++ compiler (alternative)'
|
|
)
|
|
conflicts=("${_pkgname,,}")
|
|
provides=("${_pkgname,,}")
|
|
source=(
|
|
"$_pkgname.tar.gz"
|
|
'compiler_hint.lua'
|
|
)
|
|
sha256sums=(
|
|
'SKIP'
|
|
'SKIP'
|
|
)
|
|
|
|
prepare() {
|
|
sed -i '/CONFIG += ENABLE_LUA_ADDON/ { s/^#\s*// }' RedPanda-CPP/RedPandaIDE/RedPandaIDE.pro
|
|
}
|
|
|
|
build() {
|
|
mkdir redpanda-build
|
|
cd redpanda-build
|
|
qmake \
|
|
PREFIX='/usr' \
|
|
LIBEXECDIR='/usr/lib' \
|
|
"$srcdir/$_pkgname/Red_Panda_CPP.pro"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
local _libexecdir="$pkgdir/usr/lib/RedPandaCPP"
|
|
install -Dm644 "compiler_hint.lua" "$_libexecdir/compiler_hint.lua"
|
|
|
|
cd redpanda-build
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
}
|