[arch-commits] Commit in milkytracker/repos/community-x86_64 (PKGBUILD PKGBUILD)

Alexander Rødseth arodseth at gemini.archlinux.org
Tue Aug 30 08:52:53 UTC 2022


    Date: Tuesday, August 30, 2022 @ 08:52:53
  Author: arodseth
Revision: 1288494

archrelease: copy trunk to community-x86_64

Added:
  milkytracker/repos/community-x86_64/PKGBUILD
    (from rev 1288493, milkytracker/trunk/PKGBUILD)
Deleted:
  milkytracker/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   93 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 46 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-30 08:52:47 UTC (rev 1288493)
+++ PKGBUILD	2022-08-30 08:52:53 UTC (rev 1288494)
@@ -1,47 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Christopher O'Neill <milkytracker at chrisoneill.co.uk>
-# Contributor: Maks Verver <maksverver at geocities.com>
-
-_name=MilkyTracker
-pkgname=milkytracker
-pkgver=1.03.00
-pkgrel=2
-pkgdesc='Music tracker inspired by Fast Tracker II'
-arch=(x86_64)
-url='https://milkytracker.titandemo.org/'
-license=(GPL3)
-depends=(alsa-lib lhasa rtmidi sdl2 zlib zziplib)
-makedepends=(cmake jack ninja)
-optdepends=('jack: JACK audio support')
-# Disable stripping
-# https://bugs.archlinux.org/task/30018
-options=(!strip)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/milkytracker/MilkyTracker/archive/v$pkgver.tar.gz")
-sha256sums=('72d5357e303380b52383b66b51f944a77cd77e2b3bfeb227d87cc0e72ab292f7')
-
-prepare() {
-  mv -v $_name-$pkgver $pkgname-$pkgver
-  # remove explicit use of C++98 as dependencies use C++11
-  sed -e '/CMAKE_CXX_STANDARD/d' -e '/CMAKE_CXX_EXTENSIONS/d' -i $pkgname-$pkgver/CMakeLists.txt
-}
-
-build() {
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
-    -W nodev \
-    -B build \
-    -G Ninja \
-    $pkgname-$pkgver
-  ninja -C build
-}
-
-package() {
-  depends+=(libasound.so librtmidi.so)
-
-  DESTDIR="$pkgdir" ninja install -C build
-  cd $pkgname-$pkgver/resources
-  install -vDm 644 pictures/carton.png "$pkgdir/usr/share/pixmaps/${pkgname}.png"
-  install -vDm 644 ${pkgname}.desktop -t "$pkgdir/usr/share/applications/"
-  # yes, this file extension is wrong
-  install -vDm 644 ${pkgname}.appdata "$pkgdir/usr/share/appdata/${pkgname}.appdata.xml"
-}

Copied: milkytracker/repos/community-x86_64/PKGBUILD (from rev 1288493, milkytracker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-30 08:52:53 UTC (rev 1288494)
@@ -0,0 +1,46 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Christopher O'Neill <milkytracker at chrisoneill.co.uk>
+# Contributor: Maks Verver <maksverver at geocities.com>
+
+pkgname=milkytracker
+pkgver=1.03.00
+pkgrel=3
+pkgdesc='Music tracker inspired by Fast Tracker II'
+arch=(x86_64)
+url='https://milkytracker.titandemo.org/'
+license=(GPL3)
+depends=(alsa-lib lhasa rtmidi sdl2 zlib zziplib)
+makedepends=(cmake jack ninja)
+optdepends=('jack: JACK audio support')
+# disable stripping, see: https://bugs.archlinux.org/task/30018
+options=(!strip)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/milkytracker/MilkyTracker/archive/v$pkgver.tar.gz")
+b2sums=('f14a7112de39748121933d242d89dc6efb71a73c3591fedb92785814e2edc788edfb6608e9237cdfed19ee7337d5920d0232eed5d85f692dbef5d4cb43a27cd0')
+
+prepare() {
+  mv MilkyTracker-$pkgver $pkgname-$pkgver
+  # remove explicit use of C++98
+  sed -e '/CMAKE_CXX_STANDARD/d' -e '/CMAKE_CXX_EXTENSIONS/d' \
+    -i $pkgname-$pkgver/CMakeLists.txt
+}
+
+build() {
+  cmake \
+    -B build \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D CMAKE_INSTALL_LIBDIR=lib \
+    -G Ninja \
+    -W nodev \
+    -S $pkgname-$pkgver
+  ninja -C build
+}
+
+package() {
+  depends+=(libasound.so librtmidi.so)
+  DESTDIR="$pkgdir" ninja install -C build
+  cd $pkgname-$pkgver/resources
+  install -Dm644 pictures/carton.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications/"
+  # also rename from .appdata to .appdata.xml
+  install -Dm644 $pkgname.appdata "$pkgdir/usr/share/appdata/$pkgname.appdata.xml"
+}



More information about the arch-commits mailing list