summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--LemonPlus.desktop10
-rw-r--r--PKGBUILD50
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1417ad9db27
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = lemonplus-git
+ pkgdesc = A tiny judging environment for OI contest based on Project_Lemon
+ pkgver = 20190721
+ pkgrel = 1
+ url = https://github.com/Dust1404/Project_LemonPlus
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = qt5-base
+ depends = qt5-base
+ source = git+https://github.com/Dust1404/Project_LemonPlus
+ source = LemonPlus.desktop
+ md5sums = SKIP
+ md5sums = 983771f033d32f2e7b07f0b44bb14c8d
+
+pkgname = lemonplus-git
+
diff --git a/LemonPlus.desktop b/LemonPlus.desktop
new file mode 100644
index 00000000000..3cc4e1bfa88
--- /dev/null
+++ b/LemonPlus.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Lemon Plus
+Comment=A tiny judging environment for OI contest based on Project_Lemon
+Exec=/opt/LemonPlus/lemon
+Path=/opt/LemonPlus/
+Icon=lemon
+Terminal=false
+Categories=Development;Utility;Application;
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..df6ac114948
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: water_lift <0xWATERx0@gmail.com>
+# Maintainer: Dust1404 <unknown>
+pkgname=lemonplus-git
+pkgver=20190721
+pkgrel=1
+epoch=
+pkgdesc="A tiny judging environment for OI contest based on Project_Lemon"
+arch=(x86_64)
+url="https://github.com/Dust1404/Project_LemonPlus"
+license=('GPL3')
+groups=()
+depends=('qt5-base')
+makedepends=('git' 'qt5-base')
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=('git+https://github.com/Dust1404/Project_LemonPlus' 'LemonPlus.desktop')
+noextract=()
+md5sums=('SKIP' '983771f033d32f2e7b07f0b44bb14c8d')
+
+pkgver() {
+ cd "$srcdir/Project_LemonPlus"
+ git log -1 --format="%cd" --date=short | sed 's|-||g'
+}
+
+build() {
+ cd "$srcdir/Project_LemonPlus"
+ gcc watcher_unix.c -o watcher_unix -O2
+ gcc realjudge.c -o realjudge_linux -O2
+ qmake lemon.pro
+ make
+}
+
+package() {
+ cd "$pkgdir"
+ mkdir -p "opt/LemonPlus"
+ mkdir -p "usr/bin"
+
+ install -Dm644 "$srcdir/Project_LemonPlus/icon.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/lemon.png"
+ install -Dm644 "$srcdir/LemonPlus.desktop" "$pkgdir/usr/share/applications/LemonPlus.desktop"
+
+ cp -Rv "$srcdir/Project_LemonPlus/lemon" "$pkgdir/opt/LemonPlus/lemon"
+ ln -s "$pkgdir/opt/LemonPlus/lemon" "$pkgdir/usr/bin/lemon"
+}