diff options
author | Cem Keylan <cem@ckyln.com> | 2021-01-02 03:18:08 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-01-02 03:18:08 +0300 |
commit | 3ef23b9962195c9ed482b3a3aba52222cccdb2ab (patch) | |
tree | 8e515aad68addfdbb90812ffe4fc73c95afb9bc3 /extra/shared-mime-info/build | |
parent | ac7e7ff425d94b89f08b2b388ffe508b71acb5a4 (diff) | |
parent | c1677297e7977cfa5f5ecae32a752839591ed78a (diff) | |
download | repository-helpers.tar.gz |
Merge branch 'master' into helpershelpers
Diffstat (limited to 'extra/shared-mime-info/build')
-rwxr-xr-x | extra/shared-mime-info/build | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/extra/shared-mime-info/build b/extra/shared-mime-info/build index d69c0330..c2b41d9d 100755 --- a/extra/shared-mime-info/build +++ b/extra/shared-mime-info/build @@ -3,9 +3,6 @@ # We bypass the build system entirely as it has # a mandatory dependency on gettext. -# Grab the package version. -read -r version _ < "${0%/*}/version" - mkdir -p "$1/usr/share/mime/packages" \ "$1/usr/share/pkgconfig" \ "$1/usr/bin" @@ -15,7 +12,7 @@ sed -e 's/_comment/comment/g' data/freedesktop.org.xml.in \ > "$1/usr/share/mime/packages/freedesktop.org.xml" # Replace markers in the file. -sed -e 's|@prefix@|/usr|' -e "s|@VERSION@|$version|" shared-mime-info.pc.in \ +sed -e 's|@prefix@|/usr|' -e "s|@VERSION@|$2|" shared-mime-info.pc.in \ > "$1/usr/share/pkgconfig/shared-mime-info.pc" # Define our own config.h statically. @@ -37,12 +34,12 @@ cat << EOF > src/config.h #define PACKAGE "shared-mime-info" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "shared-mime-info" -#define PACKAGE_STRING "shared-mime-info $version" +#define PACKAGE_STRING "shared-mime-info $2" #define PACKAGE_TARNAME "shared-mime-info" #define PACKAGE_URL "" -#define PACKAGE_VERSION "$version" +#define PACKAGE_VERSION "$2" #define STDC_HEADERS 1 -#define VERSION "$version" +#define VERSION "$2" EOF # Fix config.h include. |