Date: Tuesday, November 29, 2022 @ 07:09:36
  Author: grawlinson
Revision: 1354982

archrelease: copy trunk to community-x86_64

Added:
  ft2-clone/repos/community-x86_64/PKGBUILD
    (from rev 1354981, ft2-clone/trunk/PKGBUILD)
  ft2-clone/repos/community-x86_64/templatify-build-date.patch
    (from rev 1354981, ft2-clone/trunk/templatify-build-date.patch)
Deleted:
  ft2-clone/repos/community-x86_64/PKGBUILD
  ft2-clone/repos/community-x86_64/use-git-commit-date.patch

-----------------------------+
 PKGBUILD                    |  193 +++++++++++++++++++++---------------------
 templatify-build-date.patch |   21 ++++
 use-git-commit-date.patch   |   21 ----
 3 files changed, 119 insertions(+), 116 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-29 07:08:31 UTC (rev 1354981)
+++ PKGBUILD    2022-11-29 07:09:36 UTC (rev 1354982)
@@ -1,95 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: Lex Black <[email protected]>
-# Contributor: Alex Gentilucci <[email protected]>
-
-pkgname=ft2-clone
-pkgver=1.61
-pkgrel=1
-pkgdesc='Portable Fasttracker II clone'
-arch=('x86_64')
-url='https://16-bits.org/ft2.php'
-license=(
-  'BSD'
-  'MIT'
-  'custom:CC-BY-NC-SA-4.0'
-)
-depends=(
-  'alsa-lib'
-  'sdl2'
-  'flac'
-  'hicolor-icon-theme'
-)
-makedepends=(
-  'git'
-  'libicns'
-  'cmake'
-  'gendesk'
-)
-_commit='3af99afd1fb732d735c34c02c926ca4d7ba5b061'
-source=(
-  "$pkgname::git+https://github.com/8bitbubsy/ft2-clone#commit=$_commit";
-  'use-git-commit-date.patch'
-)
-sha256sums=('SKIP'
-            '3e64484b9d27b38db050009f6a988a993f3de35dda0b3d40243f4516d3dc820e')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  # convert icons
-  icns2png -x \
-    release/macos/ft2-clone-macos.app/Contents/Resources/ft2-clone-macos.icns
-
-  # generate desktop file
-  gendesk -n \
-    --exec "$pkgname" \
-    --name 'Fasttracker II Clone' \
-    --pkgname "$pkgname" \
-    --pkgdesc "$pkgdesc" \
-    --icon "$pkgname" \
-    --genericname 'Chiptune Tracker'
-
-  # attempt repro build
-  patch -p1 -i "$srcdir/use-git-commit-date.patch"
-  sed \
-    -e "s/@DATE@/$(git show --no-patch --format=%cd --date=format:'%d %B 
%Y')/" \
-    -i src/ft2_header.h
-}
-
-build() {
-  cmake \
-    -S "$pkgname" \
-    -B build \
-    -DEXTERNAL_LIBFLAC=ON \
-    -DCMAKE_BUILD_TYPE='None' \
-    -DCMAKE_INSTALL_PREFIX='/usr' \
-    -Wno-dev
-
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-
-  cd "$pkgname"
-
-  # application icons
-  for i in 16 32 48 128 256; do
-    install -vDm644 "ft2-clone-macos_${i}x${i}x32.png" 
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/ft2-clone.png"
-  done
-
-  # desktop file
-  install -vDm644 -t "$pkgdir/usr/share/applications" ft2-clone.desktop
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
-  # licensing
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" release/LICENSES.txt
-}

Copied: ft2-clone/repos/community-x86_64/PKGBUILD (from rev 1354981, 
ft2-clone/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-11-29 07:09:36 UTC (rev 1354982)
@@ -0,0 +1,98 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Lex Black <[email protected]>
+# Contributor: Alex Gentilucci <[email protected]>
+
+pkgname=ft2-clone
+pkgver=1.62
+pkgrel=1
+pkgdesc='Portable Fasttracker II clone'
+arch=('x86_64')
+url='https://16-bits.org/ft2.php'
+license=(
+  'BSD'
+  'MIT'
+  'custom:CC-BY-NC-SA-4.0'
+)
+depends=(
+  'alsa-lib'
+  'sdl2'
+  'flac'
+  'hicolor-icon-theme'
+)
+makedepends=(
+  'git'
+  'libicns'
+  'cmake'
+  'gendesk'
+)
+_commit='fde50d93b2284178743a12e8c359286ea99f0b21'
+source=(
+  "$pkgname::git+https://github.com/8bitbubsy/ft2-clone#commit=$_commit";
+  'templatify-build-date.patch'
+)
+b2sums=('SKIP'
+        
'c983881cf54bab2e643bebedb8aa933605e7bf5e76b13a5ff26e2727ac14f6748b40351aee64b2672c752a42273f581f69bf35ef82fef8555a141e569be97b53')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # convert icons
+  icns2png -x \
+    release/macos/ft2-clone-macos.app/Contents/Resources/ft2-clone-macos.icns
+
+  # generate desktop file
+  gendesk -n \
+    --exec "$pkgname" \
+    --name 'Fasttracker II Clone' \
+    --pkgname "$pkgname" \
+    --pkgdesc "$pkgdesc" \
+    --icon "$pkgname" \
+    --genericname 'Chiptune Tracker'
+
+  # attempt repro build by using commit date as build date
+  local commit_date="$(git show --no-patch --format=%cd --date=format:'%d %B 
%Y')"
+
+  # apply template
+  patch -p1 -i "$srcdir/templatify-build-date.patch"
+
+  # patch in commit date
+  sed -e "s/@DATE@/$commit_date/" -i src/ft2_header.h
+}
+
+build() {
+  cmake \
+    -S "$pkgname" \
+    -B build \
+    -DEXTERNAL_LIBFLAC=ON \
+    -DCMAKE_BUILD_TYPE='None' \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -Wno-dev
+
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  cd "$pkgname"
+
+  # application icons
+  for i in 16 32 48 128 256; do
+    install -vDm644 "ft2-clone-macos_${i}x${i}x32.png" 
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/ft2-clone.png"
+  done
+
+  # desktop file
+  install -vDm644 -t "$pkgdir/usr/share/applications" ft2-clone.desktop
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+  # licensing
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" release/LICENSES.txt
+}

Copied: ft2-clone/repos/community-x86_64/templatify-build-date.patch (from rev 
1354981, ft2-clone/trunk/templatify-build-date.patch)
===================================================================
--- templatify-build-date.patch                         (rev 0)
+++ templatify-build-date.patch 2022-11-29 07:09:36 UTC (rev 1354982)
@@ -0,0 +1,21 @@
+--- a/src/ft2_about.c
++++ b/src/ft2_about.c
+@@ -194,7 +194,7 @@ void showAboutScreen(void) // called once when About 
screen is opened
+ 
+       showPushButton(PB_EXIT_ABOUT);
+ 
+-      sprintf(customText3, "v%s (%s)", PROG_VER_STR, __DATE__);
++      sprintf(customText3, "v%s (%s)", PROG_VER_STR, PROG_VER_DATE);
+       customText1X = (SCREEN_W - textWidth(customText1)) >> 1;
+       customText2X = (SCREEN_W-8) - textWidth(customText2);
+       customText3X = (SCREEN_W-8) - textWidth(customText3);
+--- a/src/ft2_header.h
++++ b/src/ft2_header.h
+@@ -13,6 +13,7 @@
+ #include "ft2_replayer.h"
+ 
+ #define PROG_VER_STR "1.62"
++#define PROG_VER_DATE "@DATE@"
+ 
+ // do NOT change these! It will only mess things up...
+ 

Deleted: use-git-commit-date.patch
===================================================================
--- use-git-commit-date.patch   2022-11-29 07:08:31 UTC (rev 1354981)
+++ use-git-commit-date.patch   2022-11-29 07:09:36 UTC (rev 1354982)
@@ -1,21 +0,0 @@
---- a/src/ft2_about.c
-+++ b/src/ft2_about.c
-@@ -194,7 +194,7 @@ void showAboutScreen(void) // called once when About 
screen is opened
- 
-       showPushButton(PB_EXIT_ABOUT);
- 
--      sprintf(customText3, "v%s (%s)", PROG_VER_STR, __DATE__);
-+      sprintf(customText3, "v%s (%s)", PROG_VER_STR, PROG_VER_DATE);
-       customText1X = (SCREEN_W - textWidth(customText1)) >> 1;
-       customText2X = (SCREEN_W-8) - textWidth(customText2);
-       customText3X = (SCREEN_W-8) - textWidth(customText3);
---- a/src/ft2_header.h
-+++ b/src/ft2_header.h
-@@ -13,6 +13,7 @@
- #include "ft2_replayer.h"
- 
- #define PROG_VER_STR "1.61"
-+#define PROG_VER_DATE "@DATE@"
- 
- // do NOT change these! It will only mess things up...
- 

Reply via email to