summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD45
-rw-r--r--previous-icon.patch14
-rw-r--r--previous-romdefault.patch29
-rw-r--r--previous-svn.install12
-rw-r--r--previous.desktop7
6 files changed, 108 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f5f0ac2c8d9..60dd2611d14 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,32 @@
+# Generated by makepkg 5.0.0
+# Tue Feb 23 03:56:00 UTC 2016
pkgbase = previous-svn
pkgdesc = NeXTSTEP Emulator
- pkgver = r540
+ pkgver = r635
pkgrel = 1
url = http://previous.alternative-system.com
+ install = previous-svn.install
arch = i686
arch = x86_64
license = GPL
makedepends = subversion
makedepends = cmake
+ makedepends = unzip
depends = sdl2
provides = previous
conflicts = previous
replaces = previous
- source = previous::svn://svn.code.sf.net/p/previous/code/trunk
+ noextract = PReV-icons-WOshad.zip
+ source = previous::svn://svn.code.sf.net/p/previous/code/branches/branch_realtime
+ source = http://galgot.free.fr/transit/PReV-icons-WOshad.zip
+ source = previous.desktop
source = previous-icon.patch
+ source = previous-romdefault.patch
md5sums = SKIP
- md5sums = 0d1d1d6ceeae666ae590af1f8e518217
+ md5sums = 4d9be2cb0c3d6fe0bce550af8bb6c85d
+ md5sums = 2b66542a8f0efb7a3c8eaec062400afb
+ md5sums = 57aed380d85bd8264fb37b7b537f3f62
+ md5sums = 0e20ed0b6a33cf4badb529c18a69c397
pkgname = previous-svn
diff --git a/PKGBUILD b/PKGBUILD
index 7c65ecc8d02..1c791730d6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,31 @@
# Maintainer: orumin <dev@orum.in>
pkgname=previous-svn
-pkgver=r540
+pkgver=r635
pkgrel=1
pkgdesc="NeXTSTEP Emulator"
arch=('i686' 'x86_64')
url="http://previous.alternative-system.com"
license=('GPL')
depends=('sdl2')
-makedepends=('subversion' 'cmake')
+makedepends=('subversion' 'cmake' 'unzip')
replaces=('previous')
conflicts=('previous')
provides=('previous')
-source=(previous::svn://svn.code.sf.net/p/previous/code/trunk
- previous-icon.patch)
+source=(previous::svn://svn.code.sf.net/p/previous/code/branches/branch_realtime
+ http://galgot.free.fr/transit/PReV-icons-WOshad.zip
+ previous.desktop
+ previous-icon.patch
+ previous-romdefault.patch)
+noextract=('PReV-icons-WOshad.zip')
+install='previous-svn.install'
md5sums=('SKIP'
- '0d1d1d6ceeae666ae590af1f8e518217')
+ '4d9be2cb0c3d6fe0bce550af8bb6c85d'
+ '2b66542a8f0efb7a3c8eaec062400afb'
+ '57aed380d85bd8264fb37b7b537f3f62'
+ '0e20ed0b6a33cf4badb529c18a69c397')
-_svntrunk=svn://svn.code.sf.net/p/previous/code/trunk
+_svntrunk=svn://svn.code.sf.net/p/previous/code/branches/branch_realtime
_svnmod=previous
pkgver() {
@@ -37,13 +45,38 @@ build() {
cd "$srcdir/$_svnmod-build"
patch -p1 < ../previous-icon.patch
+ patch -p1 < ../previous-romdefault.patch
./configure --prefix=/usr
make
}
package() {
+ mkdir -p $srcdir/icons
+ cd $srcdir/icons
+ unzip -u $srcdir/PReV-icons-WOshad.zip
+ cd HighResOSX-WOshadow.iconset
+
+ #mkdir -p $pkgdir/usr/share/icons/hicolor/16x16/apps
+ #mkdir -p $pkgdir/usr/share/icons/hicolor/32x32/apps
+ #mkdir -p $pkgdir/usr/share/icons/hicolor/128x128/apps
+ #mkdir -p $pkgdir/usr/share/icons/hicolor/256x256/apps
+ #mkdir -p $pkgdir/usr/share/icons/hicolor/512x512/apps
+ mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16,32x32,128x128,256x256,512x512}/apps
+
+
+ cp icon_16x16.png $pkgdir/usr/share/icons/hicolor/16x16/apps/previous-app.png
+ cp icon_32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/previous-app.png
+ cp icon_128x128.png $pkgdir/usr/share/icons/hicolor/128x128/apps/previous-app.png
+ cp icon_256x256.png $pkgdir/usr/share/icons/hicolor/256x256/apps/previous-app.png
+ cp icon_512x512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/previous-app.png
+
+ mkdir -p $pkgdir/usr/share/applications
+ cp $srcdir/previous.desktop $pkgdir/usr/share/applications
+
+
cd "$srcdir/$_svnmod-build"
make DESTDIR="$pkgdir/" install
cp "$srcdir/$_svnmod-build"/src/Rev_* "$pkgdir"/usr/share/previous/
+ cp "$srcdir/$_svnmod-build"/src/dimension_eeprom.bin "$pkgdir"/usr/share/previous/
}
diff --git a/previous-icon.patch b/previous-icon.patch
index 2b38f74a191..3ffc3bfb42f 100644
--- a/previous-icon.patch
+++ b/previous-icon.patch
@@ -1,11 +1,11 @@
-diff -Nur previous-build.orig/src/CMakeLists.txt previous-build/src/CMakeLists.txt
---- previous-build.orig/src/CMakeLists.txt 2015-12-03 04:12:09.052293463 +0900
-+++ previous-build/src/CMakeLists.txt 2015-12-03 04:14:25.079342627 +0900
-@@ -126,7 +126,6 @@
+diff -Naur previous/src/CMakeLists.txt patch.previous/src/CMakeLists.txt
+--- previous/src/CMakeLists.txt 2016-02-22 10:13:54.036433610 -0800
++++ patch.previous/src/CMakeLists.txt 2016-02-22 10:18:49.316413453 -0800
+@@ -127,7 +127,6 @@
install(TARGETS Previous BUNDLE DESTINATION /Applications)
else()
install(TARGETS Previous RUNTIME DESTINATION ${BINDIR})
- install(FILES Previous-icon.bmp DESTINATION ${DATADIR})
- file(GLOB TOS_IMG_FILE tos.img)
- if(TOS_IMG_FILE)
- install(FILES tos.img DESTINATION ${DATADIR})
+ install(FILES dimension_eeprom.bin DESTINATION ${BINDIR})
+ install(FILES Rev_1.0_v41.BIN DESTINATION ${BINDIR})
+ install(FILES Rev_2.5_v66.BIN DESTINATION ${BINDIR})
diff --git a/previous-romdefault.patch b/previous-romdefault.patch
new file mode 100644
index 00000000000..9e591ef1bfd
--- /dev/null
+++ b/previous-romdefault.patch
@@ -0,0 +1,29 @@
+diff -Naur previous/src/configuration.c patch.previous/src/configuration.c
+--- previous/src/configuration.c 2016-02-22 10:13:54.149766936 -0800
++++ patch.previous/src/configuration.c 2016-02-22 19:43:31.024100388 -0800
+@@ -416,12 +416,9 @@
+ ConfigureParams.Sound.bEnableSound = true;
+
+ /* Set defaults for Rom */
+- sprintf(ConfigureParams.Rom.szRom030FileName, "%s%cRev_1.0_v41.BIN",
+- Paths_GetWorkingDir(), PATHSEP);
+- sprintf(ConfigureParams.Rom.szRom040FileName, "%s%cRev_2.5_v66.BIN",
+- Paths_GetWorkingDir(), PATHSEP);
+- sprintf(ConfigureParams.Rom.szRomTurboFileName, "%s%cRev_3.3_v74.BIN",
+- Paths_GetWorkingDir(), PATHSEP);
++ sprintf(ConfigureParams.Rom.szRom030FileName, "/usr/share/previous/Rev_1.0_v41.BIN");
++ sprintf(ConfigureParams.Rom.szRom040FileName, "/usr/share/previous/Rev_2.5_v66.BIN");
++ sprintf(ConfigureParams.Rom.szRomTurboFileName, "/usr/share/previous/Rev_3.3_v74.BIN");
+
+
+ /* Set defaults for System */
+@@ -451,8 +448,7 @@
+ ConfigureParams.Dimension.nMemoryBankSize[1] = 4;
+ ConfigureParams.Dimension.nMemoryBankSize[2] = 4;
+ ConfigureParams.Dimension.nMemoryBankSize[3] = 4;
+- sprintf(ConfigureParams.Dimension.szRomFileName, "%s%cdimension_eeprom.bin",
+- Paths_GetWorkingDir(), PATHSEP);
++ sprintf(ConfigureParams.Dimension.szRomFileName, "/usr/share/previous/dimension_eeprom.bin");
+
+ /* Initialize the configuration file name */
+ if (strlen(psHomeDir) < sizeof(sConfigFileName)-13)
diff --git a/previous-svn.install b/previous-svn.install
new file mode 100644
index 00000000000..bce670aff4a
--- /dev/null
+++ b/previous-svn.install
@@ -0,0 +1,12 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/previous.desktop b/previous.desktop
new file mode 100644
index 00000000000..593d1ab98a4
--- /dev/null
+++ b/previous.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Previous
+Comment=NeXT 68k workstation emulator
+Type=Application
+Categories=Emulator;System Tools
+Exec=/usr/bin/Previous
+Icon=previous-app