aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38da3caa2ef9dfbcce0a4332e5f462c9008c9ae8 (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
# Maintainer: jialeens <jialeadmin@163.com>

pkgname=dida
pkgver=1.0.4
pkgrel=2
pkgdesc="使用electron包装的滴答客户端"
arch=('any')
url="https://github.com/jialeens/dida"
license=("MIT")
groups=()
depends=('electron')
makedepends=('git' 'npm' 'sed' 'gcc')
checkdepends=()
optdepends=()
provides=(${pkgname%-git})
conflicts=("dida-git")
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/jialeens/dida/archive/1.0.4.tar.gz"
       "dida.desktop"
	   "dida.sh")
noextract=()
sha256sums=("d99a45de43649307fe23415d18243a460e373654de0c10b455ae42a3e5015f51"
            "2900c26c1209f94033b94c38ad754aa2941f2acbf681f8c30a04f83b128d3f13"
			"24a3b6e4300741f8184395a9d628076205f249201658a318c1eebaec6f613884")
build() {
	cd "$pkgname-$pkgver"
	npm install 
	npm run package
}
package() {
	mkdir -p "$pkgdir/usr/lib/$pkgname"
    cp -r --no-preserve='ownership' -- $pkgname-$pkgver/dist/dida-linux-x64/* "$pkgdir/usr/lib/$pkgname"
	install -Dm644 "$srcdir/$pkgname-$pkgver/dida.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/dida.png"
	install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm755 "dida.sh" "$pkgdir/usr/bin/dida"
	install -Dm644 "dida.desktop" -t "$pkgdir/usr/share/applications"
}