summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 21 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e6ac63a06d0..9101704791f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
-# Maintainer: Pest <ppest@protonmail.com>
+# Maintainer: Pest <ppest@protonmail.com> caus o chngs I tmp use cmake
_pkgname=devault
pkgname="${_pkgname}core-git"
-pkgver=r16757.e8b7c87eb
+pkgver=r16858.3203770a4
pkgrel=1
pkgdesc="QT Desktop wallet for the dvt blockchain"
arch=('x86_64')
@@ -9,34 +9,38 @@ license=('MIT')
url="https://github.com/devaultcrypto/"
conflicts=("${_pkgname}" "${_pkgname}core")
source=("git+https://github.com/devaultcrypto/${_pkgname}.git")
-depends=('boost-libs' 'qt5-base' 'qrencode' 'zeromq' 'miniupnpc' 'hicolor-icon-theme' 'libevent')
-makedepends=('python' 'boost' 'qt5-tools')
+depends=('boost-libs' 'qt5-base' 'qrencode' 'zeromq' 'miniupnpc'\
+ 'hicolor-icon-theme' 'libevent')
+makedepends=('python' 'boost' 'qt5-tools' 'cmake')
md5sums=('SKIP')
+
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-prepare() {
- cd "${srcdir}/${_pkgname}"
- ./autogen.sh
-}
-
build() {
- cd "${_pkgname}"
- ./configure --prefix=/usr/
- make
+ cmake \
+ -B build -S "${_pkgname}" \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DBUILD_CTESTS=0 \
+ -Wno-dev
+ make -C build
}
-package() {
- cd "${srcdir}/${_pkgname}"
- make DESTDIR="${pkgdir}/" install
+package(){
+ mkdir -p "$pkgdir/usr/bin"
+ cd "$srcdir/build/"
+ install -D -m755 ./devault* "$pkgdir/usr/bin/"
+ install -D -m755 ./DeVault-Core "$pkgdir/usr/bin/"
+ cd "$srcdir/${_pkgname}"
+ sed -i 's/devault-qt/DeVault-Core/g' contrib/debian/devault-qt.desktop
install -D -m644 \
contrib/debian/devault-qt.desktop \
- "${pkgdir}/usr/share/applications/devault-qt.desktop"
+ "${pkgdir}/usr/share/applications/DeVault-Core.desktop"
install -D -m644 \
share/pixmaps/devault-128.png \
"${pkgdir}/usr/share/icons/hicolor/128x128/apps/devault-128.png"
- install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}