summaryrefslogtreecommitdiff
path: root/libre/icecat-i18n/Makefile
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-01-13 21:51:57 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-01-13 21:51:57 -0200
commitf4444da8f7943507e90c4b169205809221f2744e (patch)
tree1d17cd08ca1115fd6f6a0b6c52144f8d2fc09677 /libre/icecat-i18n/Makefile
parent8968b5bdb015c3eb0b69035c6912319b008319e6 (diff)
ice{cat,weasel}: revert to back pkg stables and mv lukeshu pkgs to libre-testing
Diffstat (limited to 'libre/icecat-i18n/Makefile')
-rw-r--r--libre/icecat-i18n/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/icecat-i18n/Makefile b/libre/icecat-i18n/Makefile
new file mode 100644
index 000000000..d1aaf7bff
--- /dev/null
+++ b/libre/icecat-i18n/Makefile
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+# Use this script to update the PKGBUILD's list of langpacks.
+# This script depends on:
+# - coreutils
+# - grep
+# - pacman
+# - sed
+# - wget
+
+# Variables:
+_pkgver=10.0
+pkgver=10.0
+pkgrel=1
+
+# Guts: ##############################################################
+
+default: PHONY all
+all: PHONY PKGBUILD
+
+index.html: Makefile
+ rm -f $@
+ wget http://gnuzilla.gnu.org/download/langpacks/${pkgver}/
+langpacks.txt: index.html Makefile
+ egrep -o '[^>".]+\.xpi' $< | sort -u | sed 's/\.xpi//' > $@
+PKGBUILD: PKGBUILD.in langpacks.txt Makefile
+ sed \
+ -e 's/@_PKGVER@/$(_pkgver)/' \
+ -e 's/@PKGVER@/$(pkgver)/' \
+ -e 's/@PKGREL@/$(pkgrel)/' \
+ -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \
+ -e '/md5sums/,$$d' \
+ PKGBUILD.in > $@
+ makepkg -dg >> $@
+
+clean: PHONY
+ rm -f index.html langpacks.txt *.xpi
+
+.PHONY: PHONY FORCE