diff options
author | zxp19821005 | 2023-11-13 13:37:21 +0800 |
---|---|---|
committer | zxp19821005 | 2023-11-13 13:37:21 +0800 |
commit | 6512adadaf316f730054996e5bc675a535e7e820 (patch) | |
tree | 6af753c70af74029506f15ba23d6414bf8060831 | |
parent | d76b2ec17e08734e1d619921f43925e648455c93 (diff) | |
download | aur-6512adadaf316f730054996e5bc675a535e7e820.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 10 insertions, 7 deletions
@@ -1,11 +1,11 @@ pkgbase = bssenglish-bin pkgdesc = 白杉树背单词训练软件. pkgver = 2.0_65 - pkgrel = 4 + pkgrel = 5 url = https://bailplus.github.io/bssenglish.pages/ arch = x86_64 license = GPL3 - depends = python + depends = python>=3.9 depends = python-requests provides = bssenglish=2.0_65 conflicts = bssenglish @@ -2,18 +2,21 @@ _pkgname=bss pkgname="${_pkgname}english-bin" pkgver=2.0_65 -pkgrel=4 +pkgrel=5 pkgdesc="白杉树背单词训练软件." arch=('x86_64') url="https://bailplus.github.io/bssenglish.pages/" -_githuburl="https://github.com/BailPlus/bssenglish" +_ghurl="https://github.com/BailPlus/bssenglish" license=('GPL3') provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") -depends=('python' 'python-requests') -source=("${pkgname%-bin}-${pkgver}.deb::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}_v${pkgver%_65}_linux.deb") +depends=( + 'python>=3.9' + 'python-requests' +) +source=("${pkgname%-bin}-${pkgver}.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}_v${pkgver%_65}_linux.deb") sha256sums=('5a0c4292539f8c6f698fa2487ca626adb3014f5a835bec2431886e8dc6d51c4d') -prepare() { +build() { bsdtar -xf "${srcdir}/data.tar.xz" sed "s|usr/lib|opt|g" -i "${srcdir}/usr/lib/${pkgname%-bin}/${_pkgname}.py" sed "s|/usr/bin/${pkgname%-bin}|${pkgname%-bin}|g;s|/usr/share/pixmaps/${_pkgname}.png|${pkgname%-bin}|g" \ |