blob: c1e48e6a17cba115a408e8470644f1fd4af7bacb (
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
|
# Maintainer: Yufan You <ouuansteve at gmail.com>
pkgname=uoj-data-converter-git
pkgver=0.4.2.r4.g3c7d981
pkgrel=1
pkgdesc='将各种各样格式的数据转换为 UOJ 的格式'
arch=('x86_64')
url='https://github.com/ouuan/uoj-data-converter'
license=('Apache')
depends=('qt5-base')
makedepends=(
'cmake'
'git'
'ninja'
)
provides=('uoj-data-converter')
conflicts=('uoj-data-converter')
source=('git+https://github.com/ouuan/uoj-data-converter.git')
md5sums=('SKIP')
pkgver() {
cd uoj-data-converter
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd uoj-data-converter
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -GNinja
cmake --build build
}
package() {
cd uoj-data-converter/build
DESTDIR="$pkgdir/" ninja install
}
|