blob: ae85bc5b0701a397f3fd35387b57b3f8d1e158fa (
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: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=mootool-bin
_pkgname=MooTool
pkgver=1.6.8
pkgrel=1
pkgdesc="Handy tool set for developers.(Prebuilt version)开发者常备小工具"
arch=('x86_64')
url="https://github.com/rememberber/MooTool"
license=('MIT')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'alsa-lib'
'libxtst'
'libxrender'
)
source=(
"${pkgname%-bin}-${pkgver}.rpm::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}.rpm"
"LICENSE-${pkgver}.txt::https://raw.githubusercontent.com/rememberber/MooTool/v${pkgver}/LICENSE.txt"
"${pkgname%-bin}.sh"
)
sha256sums=('6d1e973095af60c3b3c791c3e0de77eec7c243aa9aca705723d68ab874c76ea4'
'91930d61ff6e2bd3ceaf0ac0de4431d4ede9a9a940ca327367820df54762e333'
'74b5601e17710cdf781ec411f54075c2c477370fdc317ff75c18bdae0662b498')
prepare() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${_pkgname}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
sed -e "
s/\/opt\/${_pkgname}\/${_pkgname} %U/${pkgname%-bin} %U/g
s/\/opt\/${_pkgname}\/${_pkgname}.png/${pkgname%-bin}/g
s/Categories=Utility/Categories=Development;/g
" -i "${srcdir}/opt/${_pkgname}/${_pkgname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/opt/${_pkgname}/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/${_pkgname}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/opt/${_pkgname}/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/LICENSE-${pkgver}.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|