aboutsummaryrefslogtreecommitdiff
path: root/extra/shared-mime-info/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-01-01 22:15:26 +0300
committerCem Keylan <cem@ckyln.com>2021-01-01 22:15:26 +0300
commit3e0371f0693ffebe31f7b93913f1e1456430baba (patch)
tree8ff43ff0c761d893e165f00bf755cd6131ce2251 /extra/shared-mime-info/build
parent2cb00d1b3393cd913eb5eacad713277635d73014 (diff)
downloadrepository-3e0371f0693ffebe31f7b93913f1e1456430baba.tar.gz
shared-mime-info: bump to 2.1
Diffstat (limited to 'extra/shared-mime-info/build')
-rwxr-xr-xextra/shared-mime-info/build11
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.