summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/Makefile
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-16 20:28:36 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-16 20:28:36 -0200
commit946e8b080020343fd7b469062c9b42e4845022e4 (patch)
treecb6c7d2346a3145f273100f43c4b9bbc6cf1e0c4 /libre/icecat-l10n/Makefile
parentf95c5f310e0f240dfa4c440a1a6b7c0ac29ffbb6 (diff)
downloadabslibre-946e8b080020343fd7b469062c9b42e4845022e4.tar.gz
abslibre-946e8b080020343fd7b469062c9b42e4845022e4.tar.bz2
abslibre-946e8b080020343fd7b469062c9b42e4845022e4.zip
icecat-l10n-17.0.1-1: updating version
Diffstat (limited to 'libre/icecat-l10n/Makefile')
-rw-r--r--libre/icecat-l10n/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/icecat-l10n/Makefile b/libre/icecat-l10n/Makefile
new file mode 100644
index 000000000..d1aaf7bff
--- /dev/null
+++ b/libre/icecat-l10n/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