summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 943b1ed81774fede46711ba2af7e221a8303d7f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=noi_arbiter-bin
_ver=2.0
pkgver=${_ver}
pkgrel=1
pkgdesc="Arbiter is used to judge problems in NOI. Written by CCF."
arch=('x86_64')
url="https://www.noi.cn/gynoi/jsgz/2021-07-16/732450.shtml"
source=("https://oj.zigao.info/arbiter_local" "arbiter_local.png" "git+https://github.com/wxt1221/arbiter-filter" "run.sh" "arbiter.desktop")
sha256sums=("5bf81bbac150ca7feb37bcb5cb9789cb4affa37b8745d2f32e7bee246c37c83f"
	    "d74bbf3e6b4cc23bc61e4ac2826659e1fc40b9f812b7eb5e0ea65bc9c6ff6f9a"
	    "SKIP"
	    "e4c0d030a8439597897fa87e29fc730e527efc0f799c4f3faabde5ab6a117cc9"
	    "b7461be4a8bdfc02cf7d60471a267419698f7d8f7a5559327b3f037f66e4dd14")
package(){
	install -Dm755 "arbiter_local" "${pkgdir}/usr/bin/${pkgname}2/${pkgname}"
	install -Dm644 "arbiter.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
	install -Dm755 "arbiter_local.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png"
	mkdir ${pkgdir}/usr/bin/${pkgname}2/filter/
	cp -rf arbiter-filter/* ${pkgdir}/usr/bin/${pkgname}2/filter/
	chmod 755 ${pkgdir}/usr/bin/${pkgname}2/filter/*
	install -Dm755 "run.sh" "${pkgdir}/usr/bin/${pkgname}" 
}