summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e25aab68cff9ba266962f351f85c959ac552d2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# # This is an example PKGBUILD file. Use this as a start to creating your own,
# # and remove these comments. For more information, see 'man PKGBUILD'.
# # NOTE: Please fill out the license field for your package! If it is unknown,
# # then please put 'unknown'.
#
# #Maintainer:'rughinnit'<krpdtmnt@gmail.com>
# pkgname=journal-helper-qt
# pkgver='r1.cca7f25'
# pkgrel=1
# #epoch=
# pkgdesc="Journal in GUI"
# arch=(x86_64)
# url="https://github.com/rughinnit/$pkgname"
# license=('GPL')
# #groups=()
# depends=('libQt6Widgets.so' 'libQt6Gui.so' 'libGLX.so' 'libOpenGL.so' 'libQt6Core.so' 'libstdc++.so' 'libm.so' 'libgcc_s.so' 'libc.so' 'libEGL.so' 'libfontconfig.so' 'libX11.so' 'libglib-2.0.so' 'libQt6DBus.so' 'libxkbcommon.so' 'libpng16.so' 'libharfbuzz.so' 'libmd4c.so' 'libfreetype.so' 'libz.so' 'libGLdispatch.so' 'libicui18n.so' 'libicuuc.so' 'libsystemd.so' 'libdouble-conversion.so' 'libb2.so' 'libpcre2-16.so' 'libzstd.so' 'ld-linux-x86-64.so' 'libexpat.so' 'libxcb.so' 'libpcre2-8.so' 'libdbus-1.so' 'libgraphite2.so' 'libbz2.so' 'libbrotlidec.so' 'libicudata.so' 'libcap.so' 'libgomp.so' 'libXau.so' 'libXdmcp.so' 'libbrotlicommon.so')
# makedepends=("base-devel""make""qmake""git")
# #checkdepends=()
# #optdepends=()
# # provides=()
# #conflicts=()
# #replaces=()
# #backup=()
# #options=()
# #install=
# #changelog=
# source=("$pkgname::https://github.com/rughinnit/journal-helper-qt.git)
# #noextract=()
# sha256sums=("ffa66c5fb0f7bd1d3e0570559620cb8afbf9122a79aa70311e8845731329b5c9")
# #validpgpkeys=()
#
# # prepare() {
# # 	cd "$pkgname-$pkgver"
# # 	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
# # }
#
# pkgver() {
#   cd "$pkgname"
#   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
# }
#
# build() {
# 	cd "$pkgname"
# 	mkdir build
# 	cd build
# 	qmake6
# 	make
# }
# #/*
# #check() {
# #	cd "$pkgname-$pkgver"
# #	make -k check
# #}
#
# # package() {
# # 	cd "$pkgname-$pkgver"
# # 	make DESTDIR="$pkgdir/" install
# # }*/
#
# package() {
#   cd "$pkgname/build"
#   install -Dm755 journal-helper-qt "$pkgdir/usr/bin/journal-helper-qt"
# }
# }

# Maintainer: 'Roughinnt' <krpdtmnt@gmail.com>
pkgname=journal-helper-qt
pkgver=r6.60f8e57
pkgrel=1
pkgdesc="Journal in GUI"
arch=(x86_64)
url="https://github.com/rughinnit/$pkgname"
license=('GPL')
depends=(qt6-base)
makedepends=(base-devel make qt6-tools git)
source=("$pkgname::git+https://github.com/rughinnit/journal-helper-qt.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$pkgname"
  mkdir -p build
  cd build
  qmake6 ..
  make
}

package() {
  cd "$pkgname/build"
  install -Dm755 journal-helper-qt "$pkgdir/usr/bin/journal-helper-qt"
  cd ..
  install -Dm644 journal-helper-qt.desktop -t "$pkgdir/usr/share/applications"
}