PKGBUILD Tricks

From ArchWiki

Jump to: navigation, search

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

Useful Links

Personal tools