first release pkgbuild

This commit is contained in:
jorge-barroso 2022-08-12 00:52:48 +01:00
commit c97f474bbe
2 changed files with 60 additions and 0 deletions

15
.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = harvest-timer-qt
pkgdesc = Desktop app for Harvest, a simple time tracker and reporting tool for companies
pkgver = 0.8.0
pkgrel = 1
url = https://github.com/jorge-barroso/harvesttimer-qt
arch = x86_64
license = GPL
makedepends = cmake
depends = qt6-base
provides = harvest-timer
conflicts = harvest-timer
source = https://github.com/jorge-barroso/harvesttimer-qt/archive/refs/tags/v0.8.0.tar.gz
sha256sums = 9f68da63f191573bef0c3fea76f701e4e124cf1cfa783697a9e5f10bbf8e7721
pkgname = harvest-timer-qt

45
PKGBUILD Normal file
View file

@ -0,0 +1,45 @@
# Maintainer: Jorge Barroso <jorge_barroso_11 at hotmail dot com>
_pkgname=harvesttimer-qt
_appname=harvest
pkgname=harvest-timer-qt
pkgver=0.8.0
pkgrel=1
pkgdesc='Desktop app for Harvest, a simple time tracker and reporting tool for companies'
arch=('x86_64')
url='https://github.com/jorge-barroso/harvesttimer-qt'
license=('GPL')
provides=('harvest-timer')
conflicts=('harvest-timer')
depends=('qt6-base')
makedepends=('cmake')
apptag="v${pkgver}"
source=(
"https://github.com/jorge-barroso/${_pkgname}/archive/refs/tags/${apptag}.tar.gz"
)
srcdir_name="${_pkgname}-${pkgver}"
sha256sums=('9f68da63f191573bef0c3fea76f701e4e124cf1cfa783697a9e5f10bbf8e7721')
build() {
cd "${srcdir}"
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"
cmake "../${srcdir_name}/" -DCMAKE_INSTALL_PREFIX=/usr/bin
make || return 1
}
package() {
cd "${srcdir}/build"
make DESTDIR="$pkgdir/" install || return 1
for _size in 16 24 32 48 64 96 128 256 512; do
install -Dm644 "../${srcdir_name}/resources/icons/hicolor/${_size}x${_size}.png" "$pkgdir/usr/share/icons/hicolor/${_size}x${_size}/apps/${_appname}.png"
done
install -Dm644 "../${srcdir_name}/resources/desktop/${_appname}.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${_appname}.svg"
install -Dm755 "../${srcdir_name}/resources/desktop/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
}