blob: 8f0ec207f6c913788e7d5c7b83a537720befef39 (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=secret-diary-bin
_pkgname=Secret-Diary
pkgver=1.2.16
pkgrel=8
pkgdesc="Desktop diary tool. crypt with AES 256. 安全日记本,一个加密信息管理软件,加密强度非常强,只能暴力破解数据,只要密码足够复杂,数据就足够安全。"
arch=("x86_64")
url="http://rocket049.cn/"
_ghurl="https://github.com/rocket049/secret-diary"
license=('Apache-2.0')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'qt5-base'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-ubuntu2204_amd64.deb"
"${pkgname%-bin}.sh"
)
sha256sums=('a0d688214e98d391d61b44440bbe9249245041e97e1578e57868bcdcae6ac05b'
'00399409a7b7e894126c3f16e3b04c8b1ad8d00d57a757407527022909ed9490')
build() {
sed -e "s|@appname@|${pkgname%-bin}|g" \
-e "s|@runappname@|${pkgname%-bin}|g" \
-i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed -e "s|/opt/${pkgname%-bin}/${pkgname%-bin}|${pkgname%-bin}|g" \
-e "s|/opt/${pkgname%-bin}/Sd.png|${pkgname%-bin}|g" \
-i "${srcdir}/usr/share/applications/${_pkgname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib"
cp -r "${srcdir}/opt/${pkgname%-bin}" "${pkgdir}/usr/lib"
install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/Sd.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
}
|