77pkgdesc=" Firefox sandboxed by portable (en_US locale)"
88arch=(' x86_64' )
99url=" https://github.com/Kraftland/portable"
10- license=(' GPL-3.0-or-later ' )
10+ license=(' MPL-2.0 ' )
1111groups=()
1212provides=(firefox-developer-edition)
1313options=(! debug ! strip)
@@ -21,43 +21,30 @@ checkdepends=()
2121
2222source=(
2323 portable-config
24- firefox.sh
2524 firefox.desktop
2625)
2726
2827
29- md5sums=(' 1ce4e3c8db9bb3f86bbb0aaf5fd583bf'
30- ' 7b9045a876cb70cfce509dcef69d6561'
31- ' 7c0b0bae889e55058c366fc47d9edd25' )
32-
33- function prepare() {
34- pacman -Ql firefox-developer-edition > file.list
35- }
28+ md5sums=(' SKIP'
29+ ' SKIP' )
3630
3731function package() {
3832 depends=(" portable" )
3933 depends+=(alsa-lib at-spi2-core bash cairo dbus ffmpeg4.4 fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gtk3 hicolor-icon-theme libpulse
4034 libx11 libxcb libxcomposite libxdamage libxext libxfixes libxrandr libxss libxt mime-types nspr nss pango ttf-font)
41- while IFS= read -r line; do
42- file=" $( echo " $line " | awk ' {print $2}' ) "
43- if [[ -d ${file} ]]; then
44- echo " Omitting Directory"
45- else
46- if [[ -L " ${file} " ]]; then
47- mkdir -p " $( dirname " ${pkgdir} /${file} " ) "
48- ln -vsf " $( readlink -f " ${file} " ) " " ${pkgdir} /${file} "
49- else
50- install -vDm755 " ${file} " " ${pkgdir} /${file} "
51- fi
52- fi
53- done < file.list
54- rm -f " ${pkgdir} /usr/share/applications" /*
55- rm -f " ${pkgdir} /usr/bin" /*
56- install -Dm644 portable-config \
57- " ${pkgdir} /usr/lib/portable/info/org.mozilla.firefox_developer_edition/config"
58- install -Dm755 " firefox.sh" \
59- " ${pkgdir} /usr/bin/firefox-developer-edition-portable"
60- install -Dm644 " firefox.desktop" " ${pkgdir} /usr/share/applications/org.mozilla.firefox_developer_edition.desktop"
35+
36+ export pkgdir
37+ export pkgname
38+ export srcdir
39+ portable-packer \
40+ -v \
41+ --distro arch \
42+ --mode copy firefox-developer-edition \
43+ --hash true \
44+ --config " ${srcdir} /portable-config" \
45+ --desktop-file " ${srcdir} /firefox.desktop" \
46+ --dbus-activation
47+
6148 echo ' ' ' [Desktop Entry]
6249Type=Application
6350Name=Firefox Developer Edition
@@ -67,4 +54,4 @@ TryExec=portable
6754Exec=env _portableConfig="org.mozilla.firefox_developer_edition" portable -- %u
6855Terminal=false
6956NoDisplay=true' ' ' > " ${pkgdir} /usr/share/applications/firefox-developer-edition.desktop"
70- }
57+ }
0 commit comments