# Maintainer: exponential _name='cookie-autodelete' pkgname="webext-${_name}-chromium" pkgver=3.8.2 _download_name="Cookie-AutoDelete_v${pkgver}_Chrome" pkgrel=0 pkgdesc="Chromium extension that automatically deletes cookies." arch=('all') url='https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/' license=('MIT') optdepends=('chromium') source=("${pkgname}_${pkgver}.zip::${url}releases/download/v${pkgver}/${_download_name}.zip") noextract=("${pkgname}_${pkgver}.zip") options=('!strip') b2sums=('3d340ee1182feba251a909205cfe420b2780f60d236eef0a0e3fbcb7a63342656c5febaf86a5b3658108b431b4189942cdc018f7194d783df54fec2e6e216206') prepare() { cd "${srcdir}" # clean rm -Rf "${pkgname}-${pkgver}" # extract archive install -dm755 "${pkgname}-${pkgver}" bsdtar -xf "${pkgname}_${pkgver}.zip" -C "${pkgname}-${pkgver}" } package() { _license_path="/usr/share/chromium/extensions/${_name}/LICENSE" 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/" }