1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-10-31 15:25:02 -04:00
arch-ppa/src/redis-desktop-manager/PKGBUILD

82 lines
2.6 KiB
Bash
Raw Normal View History

2017-07-01 12:45:39 -04:00
# Maintainer: Vyacheslav Konovalov <echo dnlhY2hrb25vdmFsb3ZAZ21haWwuY29tCg== | base64 -d>
2016-11-05 01:29:34 -04:00
pkgname=redis-desktop-manager
pkgver=2019.3
2016-11-05 01:29:34 -04:00
pkgrel=1
pkgdesc='Open source cross-platform Redis Desktop Manager based on Qt 5'
arch=('x86_64')
url="https://redisdesktop.com/"
license=('GPLv3')
depends=(
'qt5-base'
'qt5-imageformats'
'qt5-tools'
'qt5-declarative'
'qt5-quickcontrols'
'qt5-quickcontrols2'
'qt5-charts'
'qt5-graphicaleffects'
'qt5-svg'
'libssh2')
makedepends=('git' 'gcc' 'python2' 'python')
2016-11-05 01:29:34 -04:00
conflicts=('redis-desktop-manager-bin')
2019-07-27 10:40:51 -04:00
source=("rdm::git://github.com/uglide/RedisDesktopManager.git#tag=$pkgver"
2016-11-05 01:29:34 -04:00
'rdm.sh'
'rdm.desktop')
sha256sums=('SKIP'
'f469d9a5adce723904efe0f1b1db5d79807410f90aafb117f18ae108d8b2d391'
'9ca6cfe0fc1a050552ec2fa009a2d517de3b049ff6f379f0fda849e4dbca3f68')
2016-11-05 01:29:34 -04:00
prepare() {
cd rdm/
git submodule update --init --recursive
git submodule add https://chromium.googlesource.com/linux-syscall-support 3rdparty/linux-syscall-support
2019-07-27 10:40:51 -04:00
python2 build/utils/set_version.py "$pkgver" > src/version.h
python2 build/utils/set_version.py "$pkgver" > 3rdparty/crashreporter/src/version.h
2016-11-05 01:29:34 -04:00
_lssdir='3rdparty/gbreakpad/src/third_party/lss/'
mkdir -p ${_lssdir}
cp 3rdparty/linux-syscall-support/linux_syscall_support.h ${_lssdir}
cd 3rdparty/gbreakpad
touch README
}
build() {
rm -rf $srcdir/rdm/bin
cd $srcdir/rdm/3rdparty/crashreporter
2018-09-06 21:21:03 -04:00
sed -ie 's/(APP_NAME)/("RedisDesktopManager")/g' src/main.cpp
2019-07-27 10:40:51 -04:00
sed -ie "s/(APP_VERSION)/(\"$pkgver\")/g" src/main.cpp
2018-09-06 21:21:03 -04:00
sed -ie 's/(CRASH_SERVER_URL)/("\/crash-report")/g' src/main.cpp
2016-11-05 01:29:34 -04:00
qmake CONFIG+=release DESTDIR="$srcdir/rdm/bin/linux/release" QMAKE_LFLAGS_RPATH=""
make -j 2
cd $srcdir/rdm/3rdparty/gbreakpad
./configure
make -j 2
cd $srcdir/rdm/src
qmake && make
}
package() {
_instdir="$srcdir/rdm/bin/linux/release"
_bindir="$pkgdir/usr/share/redis-desktop-manager/bin"
mkdir -p "${_bindir}"
mkdir "$pkgdir/usr/share/licenses"
mkdir "$pkgdir/usr/share/pixmaps"
mkdir "$pkgdir/usr/share/applications"
install -Dm644 "$srcdir/rdm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 "${_instdir}/rdm" "${_bindir}/rdm"
install -Dm755 "${_instdir}/crashreporter" "${_bindir}/crashreporter"
install -Dm755 "$srcdir/rdm.sh" "${_bindir}/rdm.sh"
2019-07-27 10:40:51 -04:00
install -Dm644 "$srcdir/rdm/src/resources/images/rdm.png" "$pkgdir/usr/share/pixmaps/rdm.png"
2016-11-05 01:29:34 -04:00
install -Dm644 "$srcdir/rdm.desktop" "$pkgdir/usr/share/applications/rdm.desktop"
mkdir "$pkgdir/usr/bin"
ln -s '/usr/share/redis-desktop-manager/bin/rdm.sh' "$pkgdir/usr/bin/rdm"
}