Date: Thursday, May 11, 2023 @ 03:23:57
Author: grawlinson
Revision: 1459870
archrelease: copy trunk to community-x86_64
Added:
ft2-clone/repos/community-x86_64/PKGBUILD
(from rev 1459869, ft2-clone/trunk/PKGBUILD)
ft2-clone/repos/community-x86_64/templatify-build-date.patch
(from rev 1459869, ft2-clone/trunk/templatify-build-date.patch)
Deleted:
ft2-clone/repos/community-x86_64/PKGBUILD
ft2-clone/repos/community-x86_64/templatify-build-date.patch
-----------------------------+
PKGBUILD | 196 +++++++++++++++++++++---------------------
templatify-build-date.patch | 42 ++++-----
2 files changed, 119 insertions(+), 119 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-11 03:23:15 UTC (rev 1459869)
+++ PKGBUILD 2023-05-11 03:23:57 UTC (rev 1459870)
@@ -1,98 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: Lex Black <[email protected]>
-# Contributor: Alex Gentilucci <[email protected]>
-
-pkgname=ft2-clone
-pkgver=1.63
-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='f7063748617e4dc6742294e8a471383e7b2ba497'
-source=(
- "$pkgname::git+https://github.com/8bitbubsy/ft2-clone#commit=$_commit"
- 'templatify-build-date.patch'
-)
-b2sums=('SKIP'
-
'191f6b3e3dbff4b4751867d62bf46a3c9a47cff93f8d16be79caaa036a2e1a2e7e41b6cac3c58246a58a9e4075bc106edb851e6fc38fac2f8e3d16396a7cebe3')
-
-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/PKGBUILD (from rev 1459869,
ft2-clone/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-11 03:23:57 UTC (rev 1459870)
@@ -0,0 +1,98 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Lex Black <[email protected]>
+# Contributor: Alex Gentilucci <[email protected]>
+
+pkgname=ft2-clone
+pkgver=1.67
+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=(
+ 'glibc'
+ 'gcc-libs'
+ 'alsa-lib'
+ 'sdl2'
+ 'flac'
+ 'hicolor-icon-theme'
+)
+makedepends=(
+ 'git'
+ 'libicns'
+ 'cmake'
+ 'gendesk'
+)
+_commit='fdcc53f651378abc003591a8e2371af7d6b393a1'
+source=(
+ "$pkgname::git+https://github.com/8bitbubsy/ft2-clone#commit=$_commit"
+ 'templatify-build-date.patch'
+)
+b2sums=('SKIP'
+
'530202416c15b7a5b35e0ff56bb633fed97e28d73bc4bfc1737a03098dfa6dfb0aa16751b58b3c7358f27cf7c0052143b752edeabe016a475b72e51f4c027543')
+
+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 icon
+ install -vDm644 ft2-clone-macos_512x512x32.png
"$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
+
+ # 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
+}
Deleted: templatify-build-date.patch
===================================================================
--- templatify-build-date.patch 2023-05-11 03:23:15 UTC (rev 1459869)
+++ templatify-build-date.patch 2023-05-11 03:23:57 UTC (rev 1459870)
@@ -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.63"
-+#define PROG_VER_DATE "@DATE@"
-
- // do NOT change these! It will only mess things up...
-
Copied: ft2-clone/repos/community-x86_64/templatify-build-date.patch (from rev
1459869, ft2-clone/trunk/templatify-build-date.patch)
===================================================================
--- templatify-build-date.patch (rev 0)
+++ templatify-build-date.patch 2023-05-11 03:23:57 UTC (rev 1459870)
@@ -0,0 +1,21 @@
+--- a/src/ft2_about.c
++++ b/src/ft2_about.c
+@@ -176,7 +176,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)) / 2;
+ 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.67"
++#define PROG_VER_DATE "@DATE@"
+
+ // do NOT change these! It will only mess things up...
+