[arch-commits] Commit in milkytracker/trunk (PKGBUILD milkytracker.install)

Alexander Rødseth arodseth at archlinux.org
Thu Mar 16 19:09:46 UTC 2017


    Date: Thursday, March 16, 2017 @ 19:09:46
  Author: arodseth
Revision: 216791

upgpkg: milkytracker 1.0.0-1

Modified:
  milkytracker/trunk/PKGBUILD
Deleted:
  milkytracker/trunk/milkytracker.install

----------------------+
 PKGBUILD             |   42 ++++++++++++++++++++++--------------------
 milkytracker.install |    8 --------
 2 files changed, 22 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-16 18:56:04 UTC (rev 216790)
+++ PKGBUILD	2017-03-16 19:09:46 UTC (rev 216791)
@@ -4,46 +4,48 @@
 # Contributor: Maks Verver <maksverver at geocities.com>
 
 pkgname=milkytracker
-pkgver=0.90.86
-pkgrel=3
+pkgver=1.0.0
+pkgrel=1
 pkgdesc='Fast Tracker II inspired music tracker'
 arch=('x86_64' 'i686')
 url='http://www.milkytracker.org/'
 license=('GPL3')
-depends=('sdl' 'alsa-lib' 'zlib' 'gcc-libs')
-makedepends=('jack-audio-connection-kit' 'gendesk')
+depends=('sdl2' 'alsa-lib' 'zlib' 'gcc-libs')
+makedepends=('jack-audio-connection-kit' 'gendesk' 'cmake' 'ninja' 'sdl2')
 optdepends=('jack-audio-connection-kit: JACK audio support')
 options=('docs' '!strip')
-install="$pkgname.install"
-source=("http://milkytracker.titandemo.org/files/milkytracker-0.90.86.tar.bz2")
-sha256sums=('eb93000ed4855e198dfb02df54f3e3536dc891084ca47cdd5393121137ba3bed')
+source=("https://github.com/milkytracker/MilkyTracker/archive/v$pkgver.tar.gz")
+sha256sums=('7fa982561c297aae7ed8223d2535c1f0a72057da01d002e8665b9223206932dc')
 
 prepare() {
-  gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name 'MilkyTracker' \
+  gendesk -f -n \
+    --pkgname "$pkgname" \
+    --pkgdesc "$pkgdesc" \
+    --name 'MilkyTracker' \
     --categories 'AudioVideo;Audio;AudioVideoEditing;'
 }
 
 build() {
-  cd "$pkgname-$pkgver"
-
-  ./configure --prefix=/usr --with-alsa --with-jack
-  make CXXFLAGS="$CXXFLAGS -lasound -std=c++98"
+  mkdir -p build
+  cd build
+  cmake ../"MilkyTracker-$pkgver" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -G Ninja
+  ninja
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd build
 
-  make DESTDIR="$pkgdir" install
-  mkdir -p "$pkgdir/usr/share/applications" \
-    "$pkgdir/usr/share/doc/milkytracker"
+  DESTDIR="$pkgdir" ninja install
+
+  cd "$srcdir/MilkyTracker-$pkgver"
+  install -d "$pkgdir/usr/share/applications"
   install -Dm644 resources/pictures/carton.png \
     "$pkgdir/usr/share/pixmaps/milkytracker.png"
   install -m644 "$srcdir/milkytracker.desktop" \
     "$pkgdir/usr/share/applications"
-  install -m644 docs/ChangeLog.html "$pkgdir/usr/share/doc/milkytracker"
-  install -m644 docs/MilkyTracker.html "$pkgdir/usr/share/doc/milkytracker"
-  install -m644 docs/readme_unix "$pkgdir/usr/share/doc/milkytracker"
-  install -m644 docs/FAQ.html "$pkgdir/usr/share/doc/milkytracker"
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: milkytracker.install
===================================================================
--- milkytracker.install	2017-03-16 18:56:04 UTC (rev 216790)
+++ milkytracker.install	2017-03-16 19:09:46 UTC (rev 216791)
@@ -1,8 +0,0 @@
-post_install() {
-  echo 'If you wish to use jack (or jack2), use this command the first time'
-  echo 'you start milkytracker: SDL_AUDIODRIVER=jack milkytracker'
-  echo 'Then select the jack driver in milkytracker and connect the audio'
-  echo 'with a program like qjackctl.'
-}
-
-# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list