summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6023f32c8977db59d5cc94e150af834f0ff311ec (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Darren Ng <$(base64 --decode <<<VW4xR2ZuQGdtYWlsLmNvbQo=)>
_PkgName=LabelPlus
pkgname=labelplus-bin
pkgver=1.2.6
pkgrel=1
pkgdesc="Easy tool for comic translation. Reduce communication costs of translator. Export text to Photoshop.."
arch=(any)
url=https://noodlefighter.com/label_plus/
license=(GPL2)
depends=(mono)
makedepends=(p7zip)
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
backup=()
options=('!strip')
install=
source=(
	labelplus
	"${pkgname%-bin}-$pkgver.7z::https://github.com/$_PkgName/$_PkgName/releases/download/v1.2.6/$_PkgName$pkgver.7z"
)
sha1sums=(
	caf11dc83e6da4b153d1b45b8d2d9425dabfe419
	375a7808112d2101fcfc440c5883f1e73135176c
)

prepare() {
	sed -i 's/ZH/EN/g' Lang/DefaultLanguage.xml
	rm -fv LICENSE.txt
}

package() {

	rm -v labelplus-1.2.6.7z

	install -vdm755 "$pkgdir"/usr/lib
	mv -v LabelPlus.exe "$_"/

	install -vdm755 "$pkgdir"/usr/bin
	install -vDm755 labelplus "$_"/labelplus
	rm -v labelplus

	install -vdm755 "$pkgdir"/usr/share/doc/${pkgname%-bin}
	mv -v \
		'README.md' \
		'Version History.txt' \
		"$_"/

	install -vdm755 "$pkgdir"/usr/share/${pkgname%-bin}
	mv * "$_"/

	# { echo; echo ":; cd $PWD"; echo; return 1; }

}