blob: 127230dcc0cc6398788a4282f4e6b0f79c622ea8 (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=pedax-bin
pkgver=6.66.0
_subver=164
pkgrel=1
pkgdesc="Reversi Board with edax, which is the strongest reversi engine.(Prebuilt version)"
arch=("x86_64")
url="https://sensuikan1973.github.io/pedax/"
_ghurl="https://github.com/sensuikan1973/pedax"
license=('GPL-3.0-only')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'gtk3'
)
makedepends=(
'gendesk'
)
noextract=("${pkgname%-bin}-${pkgver}.zip")
source=(
"${pkgname%-bin}-${pkgver}.zip::${_ghurl}/releases/download/${pkgver}%2B${_subver}/${pkgname%-bin}-ubuntu-latest.zip"
"${pkgname%-bin}.sh"
)
sha256sums=('123d532e48756129d8fba40476deaa42d094f96b521a074790479998c5311a7c'
'3b8311438e88f47eb507322a43c7a4156bfebb8c0f6e7b7436ef70842fb4c745')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${pkgname%-bin}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
install -Dm755 -d "${srcdir}/usr/lib/${pkgname%-bin}"
bsdtar -xf "${srcdir}/${pkgname%-bin}-${pkgver}.zip" -C "${srcdir}/usr/lib/${pkgname%-bin}"
gendesk -q -f -n --pkgname="${pkgname%-bin}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${pkgname%-bin}" --exec="${pkgname%-bin} %U"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/usr" "${pkgdir}"
install -Dm644 "${srcdir}/usr/lib/${pkgname%-bin}/data/flutter_assets/assets/images/${pkgname%-bin}_logo.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}
|