mirror of
https://github.com/archlinux/aur.git
synced 2026-02-14 04:10:20 +01:00
add firefox-extension- PKGBUILDs
This commit is contained in:
commit
f1520a767b
2 changed files with 42 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
pkgbase = firefox-extension-stylish
|
||||
pkgdesc = Restyle the web with Stylish, a user styles manager.
|
||||
pkgver = 2.0.1
|
||||
pkgrel = 1
|
||||
url = https://userstyles.org
|
||||
arch = any
|
||||
license = GPL3
|
||||
makedepends = python
|
||||
depends = firefox
|
||||
source = https://addons.cdn.mozilla.net/user-media/addons/2108/stylish-2.0.1-an+tb+sm+fx.xpi
|
||||
sha256sums = f3770e9b6479f0b14dee59c806c93c615b3fa8858121fa1a6cd7c9d3d1cf26c1
|
||||
|
||||
pkgname = firefox-extension-stylish
|
||||
|
||||
28
PKGBUILD
Normal file
28
PKGBUILD
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Maintainer: polyzen <polycitizen@gmail.com>
|
||||
|
||||
pkgname=firefox-extension-stylish
|
||||
pkgver=2.0.1
|
||||
pkgrel=1
|
||||
pkgdesc='Restyle the web with Stylish, a user styles manager.'
|
||||
url=https://userstyles.org
|
||||
arch=('any')
|
||||
license=('GPL3')
|
||||
depends=('firefox')
|
||||
makedepends=('python')
|
||||
source=("https://addons.cdn.mozilla.net/user-media/addons/2108/stylish-$pkgver-an+tb+sm+fx.xpi")
|
||||
sha256sums=('f3770e9b6479f0b14dee59c806c93c615b3fa8858121fa1a6cd7c9d3d1cf26c1')
|
||||
|
||||
package() {
|
||||
local GLOBIGNORE=*.xpi:COPYING
|
||||
local emid=$(python -c \
|
||||
"import xml.etree.ElementTree as ET
|
||||
tree = ET.parse('install.rdf')
|
||||
root = tree.getroot()
|
||||
print(root[0][0].text)")
|
||||
local dstdir="$pkgdir"/usr/lib/firefox/browser/extensions/"$emid"
|
||||
|
||||
install -d "$dstdir"
|
||||
cp -r * "$dstdir"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Loading…
Add table
Reference in a new issue