blob: 4729a8b4d819e3a32af844ddb92ddaf519604484 (
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
|
# Maintainer: silverhikari <kerrickethan@gmail.com>
pkgname=kosuzu-git
pkgver=r5.r0.62f6a73
pkgrel=1
pkgdesc="a danbooru downloader and viewer that support translation notes"
arch=(x86_64)
url="https://github.com/nostrenz/kosuzu"
license=('GPL-3.0-or-later')
depends=('qt5-base')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}" "git+https://github.com/stachenov/quazip" "git+https://github.com/itay-grudev/SingleApplication" "kosuzu.png" "kosuzu.desktop")
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.lib/SingleApplication.url "$srcdir/SingleApplication"
git config submodule.lib/QuaZIP.url "$srcdir/quazip"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/${pkgname%-git}"
qmake
make
}
package() {
install -Dm755 "kosuzu.png" "$pkgdir/usr/share/pixmaps/kosuzu.png"
install -Dm755 "kosuzu.desktop" "$pkgdir/usr/share/applications/kosuzu.desktop"
cd "$srcdir/${pkgname%-git}"
install -dm777 "$pkgdir/opt/kosuzu-git/"
install -Dm755 "Kosuzu" "$pkgdir/opt/kosuzu-git/kosuzu"
install -d "${pkgdir}/usr/bin"
ln -s "/opt/kosuzu-git/kosuzu" "${pkgdir}/usr/bin/kosuzu"
}
|