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

pkgname=dida
pkgver=1.0.1.g4498dd2
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=(${pkgname%-git})
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname::git+$url.git"
       "dida.desktop"
	   "dida.sh")
noextract=()
sha256sums=("SKIP"
            "2900c26c1209f94033b94c38ad754aa2941f2acbf681f8c30a04f83b128d3f13"
			"24a3b6e4300741f8184395a9d628076205f249201658a318c1eebaec6f613884")

build() {
	cd "$pkgname"
	npm install 
	npm run package
}

package() {
	install -Dm644 "dida.desktop" -t "$pkgdir/usr/share/applications"
	install -Dm644 "$srcdir/dida/dida.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/dida.png"
	mkdir -p "$pkgdir/usr/lib/$pkgname"
    cp -r --no-preserve='ownership' -- $pkgname/dist/dida-linux-x64/* "$pkgdir/usr/lib/$pkgname"
	install -Dm755 "dida.sh" "$pkgdir/usr/bin/dida"
}