summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052023-11-13 13:37:21 +0800
committerzxp198210052023-11-13 13:37:21 +0800
commit6512adadaf316f730054996e5bc675a535e7e820 (patch)
tree6af753c70af74029506f15ba23d6414bf8060831
parentd76b2ec17e08734e1d619921f43925e648455c93 (diff)
downloadaur-6512adadaf316f730054996e5bc675a535e7e820.tar.gz
fix errors
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 10 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8638cf5e22cc..5c625270f002 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 5c0ab6098119..a2a8a6111ad4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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" \