summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Wijsman2020-03-16 23:04:22 +0100
committerWouter Wijsman2020-03-16 23:04:22 +0100
commitf5ba01f45d266938acf760e288f8e8b5d0c61ca0 (patch)
tree43627dbdb8a36c6067d865fcaee1e517b6e6c017
parentc3cb641a3985c0b8f36b5909112bf558d86f8142 (diff)
downloadaur-f5ba01f45d266938acf760e288f8e8b5d0c61ca0.tar.gz
Correct version number and exclude irrelevant docs
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD39
2 files changed, 21 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d1f68ce71a..a2b1fff20bb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dosbox-staging
pkgdesc = A modernized DOSBox project using current development practices and tools, fixing issues, adding features that better support today's systems
- pkgver = 0.75.0
+ pkgver = v0.75.0.pre
pkgrel = 1
url = https://github.com/dreamer/dosbox-staging
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 447872a372f..33ff7e5db8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Wouter Wijsman <wwijsman@live.nl>
pkgname=dosbox-staging
-pkgver=0.75.0
+pkgver=v0.75.0.pre
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')
@@ -13,7 +13,7 @@ makedepends=('autoconf' 'automake' 'gcc' 'gzip')
provides=("dosbox")
conflicts=("dosbox")
source=(
- "https://github.com/dreamer/dosbox-staging/archive/v$pkgver-pre.tar.gz"
+ "https://github.com/dreamer/dosbox-staging/archive/v0.75.0-pre.tar.gz"
"dosbox-staging.svg"
"dosbox-staging.desktop"
)
@@ -24,34 +24,35 @@ md5sums=(
)
prepare() {
- cd "$srcdir/$pkgname-$pkgver-pre"
+ cd "$srcdir/$pkgname-0.75.0-pre"
FLAGS="-O3 -DNDEBUG -pipe"
./autogen.sh
./configure CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" --prefix=/usr
}
build() {
- cd "$srcdir/$pkgname-$pkgver-pre"
- make
+ cd "$srcdir/$pkgname-0.75.0-pre"
+ make -j "$(nproc)"
}
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 desktop 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"
+
+ cd "$srcdir/$pkgname-0.75.0-pre"
+ # gzip the man file
+ gzip -f "docs/dosbox.1" > "docs/dosbox.1.gz"
+
+ # install all other files
+ install -Dm 755 "src/dosbox" "$pkgdir/usr/bin/dosbox"
+ install -Dm 644 "docs/dosbox.1.gz" "$pkgdir/usr/share/man/man1/dosbox.1.gz"
+
+ # documentation
+ install -Dm 644 "docs/README.video" "$pkgdir/usr/share/doc/${_pkgname}/video.txt"
+ install -Dm 644 "README" "$pkgdir/usr/share/doc/${_pkgname}/manual.txt"
# 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"
+ #install -Dm 644 "contrib/icons/dosbox-staging.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/dosbox-staging.svg"
+ #install -Dm 644 "contrib/linux/dosbox-staging.desktop" "$pkgdir/usr/share/applications/dosbox-staging.svg"
}