2023-01-03 12:18:02 +08:00
|
|
|
_pkgname=RedPanda-CPP
|
|
|
|
pkgname=${_pkgname,,}-git
|
2023-11-19 08:48:58 +08:00
|
|
|
pkgver=__VERSION__
|
2023-01-03 12:18:02 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='A fast, lightweight, open source, and cross platform C++ IDE (development version)'
|
2023-08-13 20:56:46 +08:00
|
|
|
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'riscv64')
|
2023-01-03 12:18:02 +08:00
|
|
|
url="https://github.com/royqh1979/$_pkgname"
|
|
|
|
license=('GPL3')
|
|
|
|
depends=(qt5-base qt5-svg gcc gdb)
|
2024-04-13 17:45:55 +08:00
|
|
|
makedepends=(qt5-tools imagemagick librsvg)
|
2023-01-03 12:18:02 +08:00
|
|
|
optdepends=(
|
2023-03-04 18:44:39 +08:00
|
|
|
'clang: C/C++ compiler (alternative)'
|
2023-01-03 12:18:02 +08:00
|
|
|
)
|
|
|
|
conflicts=("${_pkgname,,}")
|
|
|
|
provides=("${_pkgname,,}")
|
2024-01-18 16:14:36 +08:00
|
|
|
source=(
|
|
|
|
"$_pkgname.tar.gz"
|
|
|
|
'compiler_hint.lua'
|
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
)
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
sed -i '/CONFIG += ENABLE_LUA_ADDON/ { s/^#\s*// }' RedPanda-CPP/RedPandaIDE/RedPandaIDE.pro
|
|
|
|
}
|
2023-01-03 12:18:02 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir redpanda-build
|
|
|
|
cd redpanda-build
|
|
|
|
qmake \
|
|
|
|
PREFIX='/usr' \
|
|
|
|
LIBEXECDIR='/usr/lib' \
|
|
|
|
"$srcdir/$_pkgname/Red_Panda_CPP.pro"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-01-18 16:14:36 +08:00
|
|
|
local _libexecdir="$pkgdir/usr/lib/RedPandaCPP"
|
|
|
|
install -Dm644 "compiler_hint.lua" "$_libexecdir/compiler_hint.lua"
|
|
|
|
|
2023-01-03 12:18:02 +08:00
|
|
|
cd redpanda-build
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
2024-04-13 17:45:55 +08:00
|
|
|
|
|
|
|
for size in 16 22 24 32 36 48 64 72 96 128 192 256 512; do
|
|
|
|
mkdir -p "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps"
|
|
|
|
magick convert \
|
|
|
|
-background none \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/scalable/apps/redpandaide.svg" \
|
|
|
|
-resize ${size}x${size} \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/redpandaide.png"
|
|
|
|
done
|
2023-01-03 12:18:02 +08:00
|
|
|
}
|