48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
_pkgname=RedPanda-CPP
|
|
pkgname=${_pkgname,,}-git
|
|
pkgver=2.12.r1.g57c4c5bc
|
|
pkgrel=1
|
|
pkgdesc='A fast, lightweight, open source, and cross platform C++ IDE (development version)'
|
|
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
|
url="https://github.com/royqh1979/$_pkgname"
|
|
license=('GPL3')
|
|
depends=(qt5-base qt5-svg gcc gdb)
|
|
makedepends=(git qt5-tools)
|
|
optdepends=(
|
|
'clang: C/C++ compiler (alternative)'
|
|
'git: git integration'
|
|
'alacritty: run in terminal'
|
|
'kitty: run in terminal'
|
|
'tilix: run in terminal'
|
|
'cool-retro-term: run in terminal'
|
|
'konsole: run in terminal'
|
|
'deepin-terminal: run in terminal'
|
|
'qterminal: run in terminal'
|
|
'lxterminal: run in terminal'
|
|
)
|
|
conflicts=("${_pkgname,,}")
|
|
provides=("${_pkgname,,}")
|
|
source=("$_pkgname::git+file://${PWD%packages/archlinux}")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/$_pkgname"
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
mkdir redpanda-build
|
|
cd redpanda-build
|
|
qmake \
|
|
PREFIX='/usr' \
|
|
LIBEXECDIR='/usr/lib' \
|
|
XDG_ADAPTIVE_ICON=ON \
|
|
"$srcdir/$_pkgname/Red_Panda_CPP.pro"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd redpanda-build
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
}
|