summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b4053990657b4fe63e829727faba5f0bd06cd57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: bender02 at archlinux dot us
# Contributor: serbalgi (AUR)
# Maintainer: SanskritFritz (gmail)

pkgname=fuse-emulator
pkgver=1.4.0
pkgrel=1
pkgdesc="ZX Spectrum emulator."
arch=('i686' 'x86_64')
url="http://fuse-emulator.sourceforge.net/fuse.php"
license=("GPL")
depends=('gtk3' "libspectrum=$pkgver" 'sdl')
source=("http://downloads.sourceforge.net/sourceforge/fuse-emulator/fuse-$pkgver.tar.gz"
        "fuse-emulator.desktop")

build() {
	cd "fuse-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "fuse-$pkgver"
	make DESTDIR="$pkgdir" install
	install -D -m 644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
#	install -D -m 644 "data/icons/256x256/fuse.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
	for resolution in 16x16 32x32 48x48 64x64 128x128 256x256
	do
		install -D -m 644 "data/icons/$resolution/fuse.png" "$pkgdir/usr/share/icons/hicolor/$resolution/apps/$pkgname.png"
		install -D -m 644 "data/icons/$resolution/application-x-spectrum.png" "$pkgdir/usr/share/icons/hicolor/$resolution/mimetypes/application-x-spectrum.png"
	done
}

md5sums=('7916d62d40dae09c2a7b7f1607580294'
         '0abe9522e8d0bcfa51997dbd6a602197')