summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..447872a372f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Wouter Wijsman <wwijsman@live.nl>
+
+pkgname=dosbox-staging
+pkgver=0.75.0
+pkgrel=1
+pkgdesc="A modernized DOSBox project using current development practices and tools, fixing issues, adding features that better support today's systems"
+arch=('any')
+url="https://github.com/dreamer/dosbox-staging"
+license=('GPL2')
+depends=('sdl2' 'sdl2_net' 'opusfile' 'alsa-lib')
+optdepends=('libpng' 'ncurses')
+makedepends=('autoconf' 'automake' 'gcc' 'gzip')
+provides=("dosbox")
+conflicts=("dosbox")
+source=(
+ "https://github.com/dreamer/dosbox-staging/archive/v$pkgver-pre.tar.gz"
+ "dosbox-staging.svg"
+ "dosbox-staging.desktop"
+)
+md5sums=(
+ 'fb08c1fe032a7832c3ee8989526c7d95'
+ 'ecb87451af9e962513d32dc452aa7213'
+ 'a0d2462e8e6a1cb0e1e09c318e280414'
+)
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver-pre"
+ FLAGS="-O3 -DNDEBUG -pipe"
+ ./autogen.sh
+ ./configure CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" --prefix=/usr
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver-pre"
+ make
+}
+
+package() {
+ # gzip the man file
+ gzip -f "$srcdir/$pkgname-$pkgver-pre/docs/dosbox.1" > "$srcdir/$pkgname-$pkgver-pre/docs/dosbox.1.gz"
+
+ # install all files
+ install -Dm 644 "$srcdir/$pkgname.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
+ install -Dm 644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm 755 "$srcdir/$pkgname-$pkgver-pre/src/dosbox" "$pkgdir/usr/bin/dosbox"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/README" "$pkgdir/usr/share/doc/$pkgname/README"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/docs/README.video" "$pkgdir/usr/share/doc/$pkgname/VIDEO"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/NEWS" "$pkgdir/usr/share/doc/$pkgname/NEWS"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/AUTHORS" "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/THANKS" "$pkgdir/usr/share/doc/$pkgname/THANKS"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/ChangeLog" "$pkgdir/usr/share/doc/$pkgname/ChangeLog"
+ install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/docs/dosbox.1.gz" "$pkgdir/usr/share/man/man1/dosbox.1.gz"
+
+ # This should be used once the desktop file and icon are included in the next release
+ #install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/contrib/icons/dosbox-staging.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/dosbox-staging.svg"
+ #install -Dm 644 "$srcdir/$pkgname-$pkgver-pre/contrib/linux/dosbox-staging.desktop" "$pkgdir/usr/share/applications/dosbox-staging.svg"
+}