[arch-commits] Commit in gigedit/trunk (PKGBUILD gigedit.desktop)

David Runge dvzrv at archlinux.org
Mon Jul 29 10:36:57 UTC 2019


    Date: Monday, July 29, 2019 @ 10:36:56
  Author: dvzrv
Revision: 494582

upgpkg: gigedit 1.1.1-1

Upgrading to 1.1.1/ rebuilding against libgig 4.2.0. Running autoreconf in prepare(). Creating desktop file in prepare() using gendesk (removing custom desktop file).
Switching to correct license (GPL2). minor cleanups.

Modified:
  gigedit/trunk/PKGBUILD
Deleted:
  gigedit/trunk/gigedit.desktop

-----------------+
 PKGBUILD        |   36 +++++++++++++++++++++++-------------
 gigedit.desktop |    6 ------
 2 files changed, 23 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-29 10:35:51 UTC (rev 494581)
+++ PKGBUILD	2019-07-29 10:36:56 UTC (rev 494582)
@@ -4,20 +4,31 @@
 # Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
 
 pkgname=gigedit
-pkgver=1.1.0
-pkgrel=4
+pkgver=1.1.1
+pkgrel=1
 pkgdesc="Gigasampler instrument editor"
 arch=('x86_64')
 url="https://www.linuxsampler.org/"
-license=('GPL')
+license=('GPL2')
 groups=('pro-audio')
 depends=('linuxsampler' 'gtkmm3')
-makedepends=('intltool' 'libxslt' 'linuxsampler')
-source=("https://download.linuxsampler.org/packages/${pkgname}-${pkgver}.tar.bz2"
-        "gigedit.desktop")
-sha512sums=('643fcb51ba6dcdb11e0c579726e4f0c715e3fa6779e7e318206af71123a1b7b1cd4cbec29230b0f76f083642b600acd13003398dd95a7fdab021fd9eb1a83d61'
-            '6d5344f82b2149dd26f1202cd9bf3bca839e12217a2d2493f1d1a7eb44e2bbac52afbd7417af2dd05a6ecb9cf1f68717e345ebbd8bcbb78f0eb2dce398406035')
+makedepends=('gendesk' 'intltool' 'libxslt' 'linuxsampler')
+source=("https://download.linuxsampler.org/packages/${pkgname}-${pkgver}.tar.bz2")
+sha512sums=('223702628e83e12a292f902e32baa355aca31ee82f1f8b9fed586ec9c0aaec56956d7bdc958238ec64e79b2f4c5ef9246face669b2b3645046e51d8c8289a964')
 
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+  # creating a ld.so.conf entry for gigedit.so
+  echo "/usr/lib/${pkgname}" > "${pkgname}.conf"
+  # generate XDG desktop file
+  gendesk -n \
+          --pkgname "${pkgname}" \
+          --name "${pkgname}" \
+          --genericname "Instrument Editor" \
+          --categories "AudioVideo;Audio"
+}
+
 build() {
   cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr
@@ -27,15 +38,14 @@
 package() {
   cd "${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
-  # fix linking of /usr/lib/gigedit/libgigedit.so.4.0.0
-  install -d "${pkgdir}/etc/ld.so.conf.d"
-  echo "/usr/lib/${pkgname}" > "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf"
   # xdg desktop
-  install -t "${pkgdir}/usr/share/applications" \
-    -vDm 644 "../${pkgname}.desktop"
+  install -vDm 644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
   # docs
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 {AUTHORS,ChangeLog,NEWS,README}
+  # adding gigedit.so library path to ld.so.conf (required for dependants during
+  # runtime)
+  install -vDm 644 "${pkgname}.conf" -t "${pkgdir}/etc/ld.so.conf.d/"
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: gigedit.desktop
===================================================================
--- gigedit.desktop	2019-07-29 10:35:51 UTC (rev 494581)
+++ gigedit.desktop	2019-07-29 10:36:56 UTC (rev 494582)
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Gigedit
-Comment=Instrument editor for gig files
-Exec=gigedit
-Categories=AudioVideo;Audio;Midi;Sequencer;


More information about the arch-commits mailing list