PKGBUILD Tricks
From ArchWiki
Contents |
Mono
If gmcs segfaults in combination with fakeroot, try adding this as the first part in the build() method:
build() { export MONO_SHARED_DIR=${srcdir}/weird mkdir -p "${MONO_SHARED_DIR}" ... }
Subversion
If an application has no installer, and you need to copy files directly from a subversion repository, you may end up with hidden .svn directories everywhere.
To remove .svn-files from a pkg-directory, this should work:
find ${pkgdir}/ -type d -iname ".svn" -delete
Problems with gtk-update-icon-cache
Try adding CACHE_DISABLE or CACHE_DISABLE=true after make and before install:
make DESTDIR=${pkgdir} CACHE_DISABLE install
Then make sure the PKGBUILD depends on hicolor-icon-theme.
Then put this in your .install:
post_install() { gtk-update-icon-cache -f /usr/share/icons/hicolor }
See also
- http://wiki.archlinux.org/index.php/Gnome_package_guidelines#GTK_Icon_cache
- http://repos.archlinux.org/viewvc.cgi/liferea/repos/extra-x86_64/liferea.install?revision=8576&view=markup
- http://aur.archlinux.org/packages.php?ID=16781