Skip to content

Instantly share code, notes, and snippets.

@spider-mario

spider-mario/photomatix.patch Secret

Created Apr 19, 2019
Embed
What would you like to do?
diff --git a/PKGBUILD b/PKGBUILD
index b93c0f7..8c3ea52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,20 +11,22 @@ license=('custom')
depends=('libtiff' 'openexr' 'gtkmm3')
source=("https://hdrsoft.com/download/linux/PhotomatixLinux1.1_Ubuntu16.04.deb")
sha1sums=('e8a33bc9566a36a4ec7acf0ae96693b404667170')
-install="photomatix.install"
package() {
# extract the deb file's data.tar.gz archive
tar -xJf data.tar.xz -C "${srcdir}"
install -d ${pkgdir}/usr/share
- mv ${srcdir}/usr/share/{applications,photomatix} ${pkgdir}/usr/share/
+ cp -a ${srcdir}/usr/share/{applications,photomatix} ${pkgdir}/usr/share/
chmod 755 ${pkgdir}/usr/share/applications
install -d ${pkgdir}/usr/lib
- mv ${srcdir}/usr/lib/photomatix ${pkgdir}/usr/lib
+ cp -a ${srcdir}/usr/lib/photomatix ${pkgdir}/usr/lib
- mv ${srcdir}/usr/bin ${pkgdir}/usr/
- chmod 755 ${pkgdir}/usr/bin
+ cp -a ${srcdir}/usr/bin ${pkgdir}/usr/
+ chmod -R 755 ${pkgdir}/usr/bin
+
+ install -d ${pkgdir}/usr/share/glib-2.0/schemas
+ cp ${pkgdir}/usr/share/photomatix/apps.photomatix.gschema.xml ${pkgdir}/usr/share/glib-2.0/schemas/
}
diff --git a/photomatix.install b/photomatix.install
deleted file mode 100644
index 2d7f38c..0000000
--- a/photomatix.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install() {
- sudo cp /usr/share/photomatix/apps.photomatix.gschema.xml /usr/share/glib-2.0/schemas/
- sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
- sudo chmod a+r /usr/share/glib-2.0/schemas/gschemas.compiled
-
- sudo chmod 0755 /usr/bin/photomatix
-}
-
-post_upgrade() {
- post_install
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.