🐛 Fixed PKGBUILD

This commit is contained in:
Edgar 2021-09-23 10:16:21 +02:00
parent 2fe89789bc
commit 96ac4edc3d
3 changed files with 37 additions and 9 deletions

View File

@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10)
cmake_policy(SET CMP0087 NEW)
if(${CMAKE_VERSION} VERSION_GREATER "3.14")
cmake_policy(SET CMP0087 NEW)
endif()
set(CMAKE_MODULE_PATH "${CMAKE_BINARY_DIR}" ${CMAKE_MODULE_PATH})
include(FeatureSummary)
@ -218,7 +220,7 @@ if(UNIX)
)
install(
FILES ${CMAKE_SOURCE_DIR}/rsrc/icons/fuel.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/256x256/apps
DESTINATION ${CMAKE_INSTALL_DATADIR}/pixmaps/
)
endif()

27
dist/arch-git/PKGBUILD vendored Normal file
View File

@ -0,0 +1,27 @@
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
pkgname=fuel-git
pkgver=2.0.1
pkgrel=3
pkgdesc="A GUI front-end to Fossil SCM"
arch=(i686 x86_64)
url="https://fuel-scm.org/"
license=('GPL2')
depends=('qt5-base>=5.4.0' 'qt5-webengine>=5.4.0' 'fossil' 'qtkeychain-qt5')
makedepends=('git' 'cmake')
source=("git://github.com/AnotherFoxGuy/fuel-scm")
md5sums=('SKIP')
build() {
cd "$srcdir/fuel-scm"
[ -d build ] && rm -r build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir/fuel-scm/build"
make DESTDIR="${pkgdir}" install
}

13
dist/arch/PKGBUILD vendored
View File

@ -1,4 +1,4 @@
# Maintainer: Kostas Karanikolas <lastname[at]gmail[dot]com>
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
pkgname=fuel
pkgver=2.0.1
pkgrel=3
@ -6,22 +6,21 @@ pkgdesc="A GUI front-end to Fossil SCM"
arch=(i686 x86_64)
url="https://fuel-scm.org/"
license=('GPL2')
depends=('qt5-base>=5.4.0', 'qt5-webkit>=5.4.0' 'fossil')
depends=('qt5-base>=5.4.0', 'qt5-webkit>=5.4.0', 'fossil', 'qtkeychain-qt5')
source=("https://fuel-scm.org/files/releases/${pkgname}-${pkgver}.tar.gz")
sha256sums=('034593d16eba9e30a73d1b40bfd4f1a7f9ba438a04dc07cc7bb2cd2202da40fc') # Generate with 'makepkg -g'
build() {
cd "${srcdir}"
cd "$srcdir"
[ -d build ] && rm -r build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "${srcdir}/build"
make INSTALL_ROOT="${pkgdir}" install
cd "$srcdir/build"
make DESTDIR="${pkgdir}" install
}