summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTércio Martins2020-09-26 19:02:43 -0300
committerTércio Martins2020-09-26 19:02:43 -0300
commite6fcb265990e4208656704b3e264085295790dd5 (patch)
treef8b0042f0c0427dd2af0d3de94a5577a23840e54 /PKGBUILD
parentab7aec2a8759153ce08ec98fabfe59cef7c14b07 (diff)
downloadaur-e6fcb265990e4208656704b3e264085295790dd5.tar.gz
Removing unnecessary commands in the "package" function
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2cd6e9ad9fa..f3d566af2ae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,13 +35,16 @@ prepare() {
templates_url=https://downloads.tuxfamily.org/godotengine/${godot_version_number}
curl -O ${templates_url}/SHA512-SUMS.txt
grep ${templates_file} SHA512-SUMS.txt > ${templates_file}.sha512sum
+
if [ ! -f ${templates_file} ]
then
curl -O ${templates_url}/${templates_file}
fi
+
if ! sha512sum -c ${templates_file}.sha512sum ; then
curl -O ${templates_url}/${templates_file}
fi
+
mkdir -p ${templates_home_dir}
unzip ${templates_file} 'templates/*' -d ${templates_home_dir}
cd ${templates_home_dir}
@@ -63,25 +66,24 @@ build() {
}
package() {
- install -d "${pkgdir}/usr/bin"
- install -d "${pkgdir}/usr/lib/${pkgname}"
- install -d "${pkgdir}/usr/share/metainfo"
- install -d "${pkgdir}/usr/share/applications"
- install -d "${pkgdir}/usr/share/licenses/${pkgname}"
- install -d "${pkgdir}/usr/share/icons/hicolor/256x256/apps"
-
install -Dm755 "${srcdir}/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
+
install -Dm755 "${srcdir}/${_pkgname}-${pkgver}/build/${pkgname}" \
"${pkgdir}/usr/lib/${pkgname}/${pkgname}"
+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/build/${pkgname}.pck" \
"${pkgdir}/usr/lib/${pkgname}/${pkgname}.pck"
+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/Misc/Linux/com.orama_interactive.${_pkgname}.desktop" \
"${pkgdir}/usr/share/applications/com.orama_interactive.${pkgname}.desktop"
+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/Misc/Linux/com.orama_interactive.${_pkgname}.appdata.xml" \
"${pkgdir}/usr/share/metainfo/com.orama_interactive.${pkgname}.appdata.xml"
+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/assets/graphics/icons/icon.png" \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}