Commit d0f3559b authored by Philip Müller's avatar Philip Müller

[pkg-upd] 0.2.1-1

parent 96f5a203
......@@ -2,39 +2,41 @@
pkgbase=pamac-qt
pkgname=('pamac-qt')
_pkgver=0.2.0
pkgver=0.2.0
pkgrel=4
_commit=4c02917998856e3de1da38c13aac6ca7b6168996
_pkgver=0.2.1
pkgver=0.2.1
pkgrel=1
_commit=76be9a7f0caed3dde2b972d88a43380d0851cb4c
_ver="$pkgver-g${_commit:0:7}"
pkgdesc="A QT5 frontend for libalpm - early preview version"
arch=('i686' 'x86_64')
url="https://gitlab.manjaro.org/applications/pamac-qt"
license=('GPL3')
depends=('pamac-cli>=8.0.0' 'qt5-base>=5.12.3' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'qqc2-desktop-style' 'breeze-icons')
makedepends=('git')
depends=('pamac-common>=8.0.0' 'qt5-base>=5.12.3' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'qqc2-desktop-style' 'breeze-icons')
makedepends=('git' 'cmake')
options=(!emptydirs)
source=(#"pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/v$_pkgver/$pkgname-v$_pkgver.tar.gz")
"pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz")
sha256sums=('b3e6babf2d6ba19c6efefa63293e3e9fa7d0194a77a0374498f8d64c0c45ea01')
"pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz"
'version.patch')
sha256sums=('09958c08ccefc1379261f0bbeafb1911a0bb151ad7bb3f05dfbe7808201a454c'
'd625c3b59ee3f9b0f1974351f48b34021f347c2e18c7d3fdd04c16b46837be1e')
prepare() {
cd "$srcdir/$pkgname-$_commit"
sed -i "s/VERSION =.*/VERSION =\"$_ver\"/" Pamac-Qt.pro
cd $pkgname-$_commit
patch -p0 -i ../version.patch
sed -i -e "s/VERSION/\"$_ver\"/" app/src/cpp/src/main.cpp
cd ..
mkdir -p build
}
build() {
cd "$srcdir/$pkgname-$_commit"
qmake-qt5 -makefile Pamac-Qt.pro
make -j $jc
cd build
cmake ../$pkgname-$_commit
make
}
package_pamac-qt() {
cd "$srcdir/$pkgname-$_commit"
make INSTALL_ROOT=${pkgdir} install
mkdir -p ${pkgdir}/usr/bin
mv ${pkgdir}/opt/Pamac-Qt/bin/Pamac-Qt ${pkgdir}/usr/bin/pamac-qt
chmod a+x ${pkgdir}/usr/bin/pamac-qt
install -Dm644 data/pamac-qt.desktop ${pkgdir}/usr/share/applications/pamac-qt.desktop
package() {
cd build
#cmake -P cmake_install.cmake
#make DESTDIR="${pkgdir}" install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment