makedeb
Emulates remote frameworks and delivers them as local resource, extension for Chromium.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for webext-localcdn-chromium.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_name='localcdn'
pkgname="webext-${_name}-chromium"
pkgver="2.6.76"
pkgrel=0
pkgdesc="Emulates remote frameworks and delivers them as local resource, extension for Chromium."
arch=('all')
url='https://codeberg.org/nobody/LocalCDN/'
license=('MPL2')
optdepends=('chromium')
source=("${pkgname}_${pkgver}.zip::${url}archive/v${pkgver}.zip")
extensions=()
b2sums=('205020073f60fa5be75bdf4001e1db23cd6111f06fbe643b4bd3b0b05069c339561124ea6d8964337c4bce4f98a4e74aad27ed856e3ac2e707580e76e3e4a79a')
prepare() {
cd "${srcdir}"
# clean
rm -Rf "${pkgname}-${pkgver}"
# versioned name
mv "${_name}" "${pkgname}-${pkgver}"
}
package() {
_license_path="/usr/share/common-licenses/MPL-2.0"
install -dm755 "${pkgdir}/usr/share/chromium/extensions/"
mv "${srcdir}/${pkgname}-${pkgver}" "${pkgdir}/usr/share/chromium/extensions/${_name}"
# Doc
install -dm755 "${pkgdir}/usr/share/doc/$pkgname"
ln -s "$_license_path" "${pkgdir}/usr/share/doc/$pkgname/"
}