summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce0aac7f5c0ad6c5318eab24b747d8e6fdc6cc68 (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
pkgname=narcissu2
pkgver=600392_steam+1.1	# https://steamdb.info/app/264380/patchnotes/
pkgrel=1
pkgdesc='A free japanese visual novel game, translated into English. This package includes both Narcissu and Narcissu: Side 2nd.'
arch=(any)
url=https://www.neechin.net/narcissu/
license=(custom:freeware)
depends=(ponscripter)
source=(
	https://archive.org/download/narcissu2/{narcissu2,arc1}.7z
	https://www.neechin.net/file_download/27/Narcissu_2_Eng_v1.1_script_[All_platforms].zip
	https://github.com/07th-mod/ponscripter-fork/raw/mod/src/resources/narci2.{ico,png}
	narcissu2.desktop)
noextract=(
	{narcissu2,arc1}.7z
	${source[2]##*/})
md5sums=(
	b8032dd59633ce10f13321489b73da1a
	a0b15677ba3f723f642bce5c9b2d8073
	cbbdf90489e0b937454e4ed94d63824a
	571d83dfa4b39c0ba95f825810104243
	50dbdaba66b5ad8837fd364610e72822
	SKIP)
package(){
	mkdir -p "$pkgdir"/usr/share
	bsdtar xf narcissu2.7z -C"$pkgdir"/usr/share
	bsdtar xf arc1.7z
	mv arc1 "$pkgdir"/usr/share/narcissu2/v1.1
	bsdtar xf ${source[2]##*/} -C"$pkgdir"/usr/share/narcissu2/v1.1 0.utf
	cp {narci2,"$pkgdir"/usr/share/narcissu2/icon}.png
	ln -s ../icon.png "$pkgdir"/usr/share/narcissu2/v1.1
	install narci2.ico -Dt "$pkgdir"/usr/share/pixmaps
	install narcissu2.desktop -Dt "$pkgdir"/usr/share/applications
	sed '/^Name=/s/$/ (v1.1)/;/^Path=/s,$,/v1.1,' narcissu2.desktop>"$pkgdir"/usr/share/applications/narcissu2-v1.1.desktop
}