diff options
author | Michael Laß | 2023-08-24 17:10:08 +0200 |
---|---|---|
committer | Michael Laß | 2023-08-24 17:10:08 +0200 |
commit | a62c6ae3a337d944dd3dc846eb5747e3d2f5e69f (patch) | |
tree | 577ce4f08ac4f0a2fdf5458245c3f8422388b026 /PKGBUILD | |
parent | 5337fadaa93adea88a9f64e59159f196e747746b (diff) | |
download | aur-eagle.tar.gz |
Use system libraries where possible
At least libglapi seems to cause segfaults on some systems. Let's try to
use system libraries when possible.
Unfortunately, we cannot use Arch's Qt5 libraries which would make a
significant difference in package size.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -7,12 +7,12 @@ pkgname=eagle pkgver=9.6.2 -pkgrel=1 +pkgrel=2 pkgdesc="Powerful suite for schematic capture and printed circuit board design (aka eaglecad)" arch=('x86_64') url="http://www.autodesk.com/products/eagle" license=('custom') -depends=('desktop-file-utils' 'shared-mime-info') +depends=('desktop-file-utils' 'shared-mime-info' 'krb5' 'libxcb' 'libx11' 'e2fsprogs' 'libglvnd' 'libxext' 'fontconfig' 'libxi' 'freetype2' 'pcre' 'libcups' 'dbus') options=(!emptydirs !strip) source=(# Official source according to website: # "http://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${pkgver}_English_Linux_64bit.tar.gz" @@ -60,10 +60,32 @@ package() { rm "$pkgdir"/opt/$pkgname/lib/libx* rm "$pkgdir"/opt/$pkgname/lib/libX* - # Fix permissions (necessary since 8.5.2) + # Remove libglapi which seems to cause segfaults on some systems. + rm "$pkgdir"/opt/$pkgname/lib/libglapi* + + # Remove remaining libraries that are provided by Arch packages and not Qt-related. + rm "$pkgdir"/opt/$pkgname/lib/libEGL* + rm "$pkgdir"/opt/$pkgname/lib/libavahi* + rm "$pkgdir"/opt/$pkgname/lib/libdbus* + rm "$pkgdir"/opt/$pkgname/lib/libfreebl* + rm "$pkgdir"/opt/$pkgname/lib/libgbm* + rm "$pkgdir"/opt/$pkgname/lib/libgmodule* + rm "$pkgdir"/opt/$pkgname/lib/libgthread* + rm "$pkgdir"/opt/$pkgname/lib/libkrb5* + rm "$pkgdir"/opt/$pkgname/lib/libpcre* + rm "$pkgdir"/opt/$pkgname/lib/libpl* + rm "$pkgdir"/opt/$pkgname/lib/libsmime* + + # We cannot use Arch's Qt5 due to the following errors: + # QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled + # /opt/eagle/eagle: symbol lookup error: /opt/eagle/plugins/bearer/libqconnmanbearer.so: undefined symbol: _ZdlPvm, version Qt_5 + # rm "$pkgdir"/opt/$pkgname/lib/libQt* + + # Fix file permissions find "$pkgdir" -perm 750 -exec chmod 755 {} \; find "$pkgdir" -perm 700 -exec chmod 755 {} \; find "$pkgdir" -perm 640 -exec chmod 644 {} \; find "$pkgdir" -perm 600 -exec chmod 644 {} \; + chmod 755 "$pkgdir"/opt/eagle/lib/libSuits.so } |