blob: 5fb56d282916071c00e070b12141265ba33ace6d (
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
|
# Maintainer: William Di Luigi <williamdiluigi@gmail.com>
pkgname=testlib
pkgver=0.9.41
pkgrel=1
pkgdesc="A library used to write the auxiliary programs (validators, generators, and so on) for programming contest problems."
arch=('any')
url="http://codeforces.com/testlib"
license=('MIT')
makedepends=(
'git'
'unzip'
)
source=(
"https://github.com/MikeMirzayanov/testlib/archive/refs/tags/${pkgver}.zip"
)
sha256sums=(
'SKIP'
)
package() {
unzip -o ${pkgver}.zip
cd testlib-${pkgver}
# Copy testlib.h
install -D -m644 testlib.h $pkgdir/usr/include/testlib.h
# Copy auxiliary files
install -d -m644 $pkgdir/usr/share/testlib/checkers
install -D -m644 checkers/*.cpp $pkgdir/usr/share/testlib/checkers
install -d -m644 $pkgdir/usr/share/testlib/generators
install -D -m644 generators/*.cpp $pkgdir/usr/share/testlib/generators
install -d -m644 $pkgdir/usr/share/testlib/interactors
install -D -m644 interactors/*.cpp $pkgdir/usr/share/testlib/interactors
install -d -m644 $pkgdir/usr/share/testlib/validators
install -D -m644 validators/*.cpp $pkgdir/usr/share/testlib/validators
}
|