blob: 8793201b75973513229202ca16833c06a04722e7 (
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
|
#Maintainer: claymorwan <claymorwan@fembois.dev>
_pkgname="shijima-qt"
pkgname=shijima-qt-git
pkgver=0.1.0.r6.gf4099eb
pkgrel=1
pkgdesc="Cross-platform shimeji simulation for desktop"
arch=(x86_64 aarch64)
url="https://github.com/pixelomer/Shijima-Qt"
license=('GPL-3.0-only')
depends=(
'qt6-base'
'qt6-multimedia'
'libunarr'
)
makedepends=(
'git'
'pkgconfig'
'libarchive'
'xcb-util-cursor'
'imagemagick'
'cmake'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags --long | sed 's/v//;s/-/.r/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
git submodule set-url libshijima https://github.com/pixelomer/libshijima
git submodule set-url libshimejifinder https://github.com/pixelomer/libshimejifinder
git submodule set-url cpp-httplib https://github.com/yhirose/cpp-httplib/
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
CONFIG=release make -j8
# Convert image
magick "$_pkgname.ico" "$_pkgname.png"
}
package() {
cd "$srcdir/$pkgname"
install -d "$pkgdir/usr/bin/"
install -d "$pkgdir/usr/share/applications/"
install -Dm644 $_pkgname -t "$pkgdir/usr/bin/"
chmod +x "$pkgdir/usr/bin/$_pkgname"
# Icon
install -D "$_pkgname.png" "$pkgdir/usr/share/icons/$_pkgname.png"
# licenses
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
cd licenses
for _file in *; do
if [ -f "$_file" ]; then
install -Dm644 $_file "$pkgdir/usr/share/licenses/$_pkgname/$_file"
fi
done
install -Dm0644 /dev/stdin $pkgdir/usr/share/applications/$_pkgname.desktop << EOF
[Desktop Entry]
Name=Shijima-Qt
Exec=$_pkgname
Icon=$_pkgname
Terminal=false
Type=Application
Comment=Cross-platform shimeji simulation for desktop
EOF
}
|