diff options
author | William Di Luigi | 2015-09-30 00:59:55 +0200 |
---|---|---|
committer | William Di Luigi | 2015-09-30 00:59:55 +0200 |
commit | 21fbce858e06ac27f72c4cc4ff5384a1afbfe61c (patch) | |
tree | 3a90032e595c94226ec27f421d99fe9a0a78d8cb | |
download | aur-21fbce858e06ac27f72c4cc4ff5384a1afbfe61c.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dbc02954e917 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = testlib + pkgdesc = A library used to write the auxiliary programs (validators, generators, and so on) for programming contest problems. + pkgver = r125.5eb7c9c + pkgrel = 1 + url = http://codeforces.com/testlib + arch = any + license = MIT + makedepends = git + source = git://github.com/MikeMirzayanov/testlib.git + sha256sums = SKIP + +pkgname = testlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d4a0e3840109 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: William Di Luigi <williamdiluigi@gmail.com> + +pkgname=testlib +pkgver=r125.5eb7c9c +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' +) + +source=( + 'git://github.com/MikeMirzayanov/testlib.git' +) +sha256sums=( + 'SKIP' +) + +pkgver() { + cd testlib + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd testlib + + # 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 +} |