diff options
author | wo2ni | 2024-02-17 18:40:28 +0800 |
---|---|---|
committer | wo2ni | 2024-02-17 18:40:28 +0800 |
commit | 56657d828f2c20ed9d84f0b24ee3e4eb7b389218 (patch) | |
tree | 904b2a690aec18226bd8e79976602c2ff3f52852 | |
download | aur-56657d828f2c20ed9d84f0b24ee3e4eb7b389218.tar.gz |
:rocket: terabox-bin commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26b48545c2e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = terabox-bin + pkgdesc = Baidu netdisc international version + pkgver = 1.2.0 + pkgrel = 0 + url = https://www.terabox.com/chinese/ + arch = x86_64 + license = custom + depends = gtkmm3 + depends = libappindicator-gtk3 + depends = nitrogen + options = !strip + source = https://data.nephobox.com/issue/terabox/Linux/1.2.0/TeraBox_1.2.0_amd64.deb + sha256sums = 6fdc136b27b402417d914591dc7f6781ab7d9dbf00c229c9c8c8bd2f7c097aa6 + +pkgname = terabox-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5bc656a90d0c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: BadBoy <luckmelove2@gmail.com> + +pkgname='terabox-bin' +_pkgname="$(echo $pkgname |cut -d - -f 1 | tr 'tb' 'TB')" +pkgver='1.2.0' +pkgrel='0' +pkgdesc='Baidu netdisc international version' +arch=('x86_64') +license=('custom') +url='https://www.terabox.com/chinese/' + +depends=( + 'gtkmm3' + 'libappindicator-gtk3' + 'nitrogen' +) + +# DEB package +source=("https://data.nephobox.com/issue/terabox/Linux/${pkgver}/${_pkgname}_${pkgver}_amd64.deb") + +sha256sums=( + '6fdc136b27b402417d914591dc7f6781ab7d9dbf00c229c9c8c8bd2f7c097aa6' +) + +options=(!strip) + +prepare() { + bsdtar -xpf "data.tar.bz2" +} + +package() { + cd "${srcdir}" + + # install application data + mv -v "usr" "${pkgdir}" + + install -dm755 "${pkgdir}/usr/lib" "${pkgdir}/usr/share/licenses/${_pkgname}" "${pkgdir}/opt" + mv "opt/${_pkgname}" "${pkgdir}/opt/" + + # fix promission + chmod 644 "${pkgdir}/opt/${_pkgname}/"*.so + find ${pkgdir} -type d -exec chmod 755 {} \; + + # install license + ln -s "/usr/lib/${_pkgname}/LICENSE.electron.txt" \ + "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.electron.txt" + ln -s "/usr/lib/${_pkgname}/LICENSES.chromium.html" \ + "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSES.chromium.html" +} |