summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMike Swanson2013-10-29 18:45:30 -0700
committerMike Swanson2013-10-29 18:45:30 -0700
commit72e11d0c3b3a3e6621c24e5c16c7a3ca459d526c (patch)
tree8506e24e5333ae452775ca6431fc4cdb16bdc987 /PKGBUILD
parent08adcd84677d41e38aa76e62d9f3c19d33846e54 (diff)
downloadaur-72e11d0c3b3a3e6621c24e5c16c7a3ca459d526c.tar.gz
Update dosemu-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 16 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bf09a66be52..6f8164eb634 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,9 @@
# Contributor: Bob Finch <w9ya@arrl.net>
pkgname=dosemu-git
-pkgver=20130617
+pkgver=1.4.0.8.180.g35054ba
pkgrel=1
+epoch=1
pkgdesc="DOS emulator"
arch=('i686' 'x86_64')
url="http://www.dosemu.org/"
@@ -20,40 +21,35 @@ provides=('dosemu')
backup=('etc/dosemu/dosemu.conf'
'etc/dosemu/dosemu.users'
'etc/dosemu/global.conf')
-source=(https://dl.dropbox.com/u/13513277/dosemu/dosemu-freedos-1.1-bin.tgz
+source=('dosemu::git://git.code.sf.net/p/dosemu/code'
+ https://dl.dropboxusercontent.com/u/13513277/dosemu/dosemu-freedos-1.1-bin.tgz
debianize.patch
xdosemu.desktop)
-sha256sums=('8f25916dc7f58e71398820b9bc83987cb39e3cd23a7d2d15a7294b2d42cfbed0'
- '0a75924d81cde89affe8ea0213fe542cfe6204c45bff5fbaae4f5dd11e3ede2d'
+sha256sums=('SKIP'
+ '0891a8346ee58f8468ab17f93315d6f23fe68348d297be39c1faad5bd6e59613'
+ '63471aa2c47a52319665c1f3a706d21665edd41df07797c3f558db348b477ba0'
'ae737e26165c016242d5a8603a5c887c313570e1525091b30f9e8d23d1a9faab')
noextract=('dosemu-freedos-1.1-bin.tgz')
-_gitroot=git://git.code.sf.net/p/dosemu/code
-_gitname=dosemu
+pkgver() {
+ cd "$srcdir/dosemu"
+ local ver="$(git describe --long)"
+ local ver="${ver/dosemu-/}"
+ echo "${ver//-/.}"
+}
build() {
- cd "$srcdir"
- msg "Connecting to GIT server..."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
+ cd "$srcdir/dosemu"
- msg "SVN checkout done or server timeout"
- msg "Starting build..."
+ patch -p1 -i ../debianize.patch
- cd "$srcdir/$_gitname"
- patch -p1 < ../debianize.patch
sed -ie '/yyget_leng/ s/int/size_t/' src/base/init/lexer.h
./configure --prefix=/usr --with-fdtarball="$srcdir/dosemu-freedos-1.1-bin.tgz" --mandir=/usr/share/man
make
}
package() {
- cd "$srcdir/$_gitname"
+ cd "$srcdir/dosemu"
make DESTDIR="$pkgdir" install
install -Dm 644 "$srcdir"/xdosemu.desktop "$pkgdir"/usr/share/applications/xdosemu.desktop
install -Dm 644 etc/dosemu.xpm "$pkgdir"/usr/share/icons/dosemu.xpm