summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD31
2 files changed, 24 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 68268db01ae..d963b8d7502 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
pkgbase = csky-qemu-bin
pkgdesc = C-Sky Qemu
- pkgver = 20210202_1445
+ pkgver = 3.2.0
pkgrel = 1
- url = https://occ.t-head.cn/community/download?id=616215132330000384
+ url = https://occ.t-head.cn/community/download?id=636946310057951232
arch = x86_64
license = GPL2
license = LGPL2.1
+ license = custom
makedepends = tar
depends = bash
- depends = qemu
+ noextract = csky-qemu-bin-3.2.0.tar.gz
options = !strip
- source = csky-qemu-bin-20210202_1445.tar.gz::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1612269502091/csky-qemu-x86_64-Ubuntu-16.04-20210202-1445.tar.gz
- source = https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1355977/1593743011800/C-SKY_QEMU_User_Guide.pdf
- source = https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/cop-image-prod/resource/420257228264570880/1577083422668/C-SKY+CPF+User+Guide.pdf
+ source = csky-qemu-bin-3.2.0.tar.gz::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1612269502091/csky-qemu-x86_64-Ubuntu-16.04-20210202-1445.tar.gz
+ source = C-SKY QEMU User Guide.pdf::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1355977/1593743011800/C-SKY_QEMU_User_Guide.pdf
+ source = C-SKY CPF User Guide.pdf::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/cop-image-prod/resource/420257228264570880/1577083422668/C-SKY+CPF+User+Guide.pdf
sha256sums = a13735079ab89d84a43794810b8941bffee8a95bef89a6aa05ccb2c4fa46b2f7
sha256sums = 1eb8b7f77dc85b066154d87899d4ee9d792f0c64aa6a51e0a063e8ea41eb3b82
sha256sums = 26e2a6d7980339ea538f3dba3950e92d03a33ab8b70b68223f809ad1f285b4d3
diff --git a/PKGBUILD b/PKGBUILD
index b13047756d3..4418f189706 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,15 @@
# Maintainer: taotieren <admin@taotieren.com>
pkgname=csky-qemu-bin
-pkgver=20210202_1445
+pkgver=3.2.0
pkgrel=1
epoch=
pkgdesc="C-Sky Qemu"
arch=('x86_64')
-url="https://occ.t-head.cn/community/download?id=616215132330000384"
-license=('GPL2' 'LGPL2.1')
+url="https://occ.t-head.cn/community/download?id=636946310057951232"
+license=('GPL2' 'LGPL2.1' 'custom')
groups=()
-depends=('bash' 'qemu')
+depends=('bash')
makedepends=("tar")
checkdepends=()
optdepends=()
@@ -20,23 +20,26 @@ backup=()
options=('!strip')
install=
changelog=
-source=("${pkgname}-${pkgver}.tar.gz::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1612269502091/${pkgname%-bin}-${arch}-Ubuntu-16.04-${pkgver/_/-}.tar.gz"
- "https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1355977/1593743011800/C-SKY_QEMU_User_Guide.pdf"
- "https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/cop-image-prod/resource/420257228264570880/1577083422668/C-SKY+CPF+User+Guide.pdf")
-noextract=()
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1612269502091/${pkgname%-bin}-${arch}-Ubuntu-16.04-20210202-1445.tar.gz"
+ "C-SKY QEMU User Guide.pdf::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1355977/1593743011800/C-SKY_QEMU_User_Guide.pdf"
+ "C-SKY CPF User Guide.pdf::https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/cop-image-prod/resource/420257228264570880/1577083422668/C-SKY+CPF+User+Guide.pdf")
+noextract=(${pkgname}-${pkgver}.tar.gz)
sha256sums=('a13735079ab89d84a43794810b8941bffee8a95bef89a6aa05ccb2c4fa46b2f7'
'1eb8b7f77dc85b066154d87899d4ee9d792f0c64aa6a51e0a063e8ea41eb3b82'
'26e2a6d7980339ea538f3dba3950e92d03a33ab8b70b68223f809ad1f285b4d3')
#validpgpkeys=()
package() {
- install -dm0755 "${pkgdir}/opt/t-head/C-Sky_Qemu" \
- "${pkgdir}/usr/bin"
+ install -dm0755 "${pkgdir}/opt/t-head/${pkgname%-bin}"
- cp -rv "${srcdir}/C-SKY_QEMU_User_Guide.pdf" "${pkgdir}/opt/t-head/C-Sky_Qemu"
- cp -rv "${srcdir}/C-SKY+CPF+User+Guide.pdf" "${pkgdir}/opt/t-head/C-Sky_Qemu"
- cp -rv "${srcdir}/soccfg" "${pkgdir}/"
+ tar -xf "${srcdir}/${pkgname}-${pkgver}.tar.gz" --no-same-owner --no-same-permissions -C "${pkgdir}/opt/t-head/${pkgname%-bin}"
+ cp -r "${srcdir}"/*.pdf "${pkgdir}/opt/t-head/${pkgname%-bin}"
+ install -Dm0755 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname%-bin}.sh" << EOF
+#!/bin/sh
+[ -d /opt/t-head/${pkgname%-bin}/bin ] && append_path '/opt/t-head/${pkgname%-bin}/bin'
- cp -rv `ls "${srcdir}"/bin/*csky*` "${pkgdir}/usr/bin/"
+export PATH
+EOF
}