You are not logged in.

#1 2016-09-09 17:07:16

daniel_shub
Member
Registered: 2012-06-21
Posts: 81

How to use install hooks in a PKGBUILD

From my understanding, there has been a change to the install hooks: https://wiki.archlinux.org/index.php/De … cman_Hooks The .install file for an AUR package I maintain looks like:

post_install() {
  update-desktop-database -q
  update-mime-database usr/share/mime
}

There is both a update-desktop-database.hook and update-mime-database.hook in /usr/share/libalpm/hooks. Am I correct that these hooks will automatically be triggered when files are added to usr/share/applications/ and usr/share/mime/packages/? Does this mean I do not need a .install file anymore?

Offline

#2 2016-09-09 17:12:35

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: How to use install hooks in a PKGBUILD

daniel_shub wrote:

Am I correct that these hooks will automatically be triggered when files are added to usr/share/applications/ and usr/share/mime/packages/? Does this mean I do not need a .install file anymore?

You are correct. You can remove the .install file, and install=* from the PKGBUILD

Offline

Board footer

Powered by FluxBB