Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
autoconf packaging
Browse files Browse the repository at this point in the history
add repeat option
add gettext files
  • Loading branch information
eonpatapon committed Jun 5, 2011
1 parent 3c08612 commit 729c5ab
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
@@ -0,0 +1,16 @@
Makefile
Makefile.in
Makefile.in.in
configure
config.log
config.status
aclocal.m4
autom4te.cache/
po/POTFILES
po/stamp-it

*~
*.gmo
metadata.json
*.gschema.xml
*.gschema.valid
3 changes: 3 additions & 0 deletions Makefile.am
@@ -0,0 +1,3 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = src po
20 changes: 20 additions & 0 deletions autogen.sh
@@ -0,0 +1,20 @@
#!/bin/bash
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="gnome-shell-extension-weather"

test -f $srcdir/configure.ac || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level gnome-shell-extensions directory"
exit 1
}

which gnome-autogen.sh || {
echo "You need to install gnome-common from GNOME Git (or from"
echo "your OS vendor's package manager)."
exit 1
}
. gnome-autogen.sh
3 changes: 3 additions & 0 deletions config/.gitignore
@@ -0,0 +1,3 @@
install-sh
mkinstalldirs
missing
28 changes: 28 additions & 0 deletions configure.ac
@@ -0,0 +1,28 @@
AC_PREREQ(2.63)
dnl be carefull, the version needs to be in sync with your gnome shell version
AC_INIT([gnome-shell-extension-mediaplayer],[3.0],[https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer])

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])

AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign tar-ustar])

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

GETTEXT_PACKAGE=gnome-shell-extension-mediaplayer
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL(0.26)

PKG_PROG_PKG_CONFIG([0.22])

GLIB_GSETTINGS

dnl Please keep this sorted alphabetically
AC_CONFIG_FILES([
Makefile
po/Makefile.in
src/Makefile
])
AC_OUTPUT
1 change: 1 addition & 0 deletions m4/.gitignore
@@ -0,0 +1 @@
intltool.m4
1 change: 1 addition & 0 deletions po/LINGUAS
@@ -0,0 +1 @@
fr
1 change: 1 addition & 0 deletions po/POTFILES.in
@@ -0,0 +1 @@
src/extension.js
44 changes: 44 additions & 0 deletions po/fr.po
@@ -0,0 +1,44 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-shell-extensions-mediaplayer\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-06-05 17:12+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jean-Philippe Braun <eon@patapon.info>\n"
"Language-Team: Jean-Philippe Braun <eon@patapon.info>\n"
"Language: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: extension.js:174
msgid "Next"
msgstr "Suivant"

#: extension.js:160
msgid "Previous"
msgstr "Précédent"

#: extension.js:192
msgid "Repeat"
msgstr "Répéter"

#: extension.js:185
msgid "Shuffle"
msgstr "Aléatoire"

#: extension.js:167
msgid "Toggle playback"
msgstr "Jouer/Pause"

#: extension.js:152
msgid "Unknown Album"
msgstr "Album inconnu"

#: extension.js:151
msgid "Unknown Artist"
msgstr "Artiste inconnu"

#: extension.js:153
msgid "Unknown Title"
msgstr "Titre inconnu"
21 changes: 21 additions & 0 deletions src/Makefile.am
@@ -0,0 +1,21 @@
extensionurl = https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer

# Change these to modify how installation is performed
topextensiondir = $(datadir)/gnome-shell/extensions

uuid = mediaplayer@patapon.info

extensiondir = $(topextensiondir)/$(uuid)

dist_extension_DATA = extension.js
nodist_extension_DATA = metadata.json $(EXTRA_EXTENSION)

EXTRA_DIST = metadata.json.in

metadata.json: metadata.json.in $(top_builddir)/config.status
$(AM_V_GEN) sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \
-e "s|[@]uuid@|$(uuid)|" \
-e "s|[@]shell_current@|$(PACKAGE_VERSION)|" \
-e "s|[@]url@|$(extensionurl)|" $< > $@

CLEANFILES = metadata.json
File renamed without changes.
File renamed without changes.

0 comments on commit 729c5ab

Please sign in to comment.