summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Xu2019-09-29 20:34:07 +0100
committerYifan Xu2019-09-29 20:34:07 +0100
commite41c1f36befafdeac27ad495b08a0fed5097b404 (patch)
tree87ffe85f8bfc371ff9a93c73808cb45f7555a3be
downloadaur-e41c1f36befafdeac27ad495b08a0fed5097b404.tar.gz
create a PKGBUILD file for jenkinsfile-runner
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16b0e2ddcd6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = jenkinsfile-runner-git
+ pkgdesc = A command line tool to run Jenkinsfile
+ pkgver = r281.552a0a2
+ pkgrel = 1
+ url = https://github.com/jenkinsci/jenkinsfile-runner.git
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = maven
+ depends = java-runtime-headless=8
+ conflicts = jenkinsfile-runner
+ source = jenkinsfile-runner::git+https://github.com/jenkinsci/jenkinsfile-runner.git
+ md5sums = SKIP
+
+pkgname = jenkinsfile-runner-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..18fb1b11824
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# This is an example PKGBUILD file. Use this as a start to creating your own,
+# and remove these comments. For more information, see 'man PKGBUILD'.
+# NOTE: Please fill out the license field for your package! If it is unknown,
+# then please put 'unknown'.
+
+# Maintainer: Yifan Xu <jamesxu182@gmail.com>
+pkgname=jenkinsfile-runner-git
+_pkgname=jenkinsfile-runner
+pkgver=r281.552a0a2
+pkgrel=1
+epoch=
+pkgdesc="A command line tool to run Jenkinsfile"
+arch=("i686" "x86_64")
+url="https://github.com/jenkinsci/jenkinsfile-runner.git"
+license=('MIT')
+depends=('java-runtime-headless=8')
+makedepends=('maven')
+conflicts=('jenkinsfile-runner')
+source=("${pkgname%-*}::git+https://github.com/jenkinsci/jenkinsfile-runner.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_pkgname"
+}
+
+build() {
+ cd "$_pkgname"
+ mvn package
+}
+
+package() {
+ cd "$srcdir"/"$_pkgname"
+ mkdir -p "$pkgdir"/usr/bin
+ mkdir -p "$pkgdir"/usr/share/java/"$_pkgname"
+ mkdir -p "$pkgdir"/usr/share/licenses/"$_pkgname"
+ cp -r app/target/* "$pkgdir"/usr/share/java/"$_pkgname"/
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/"$_pkgname"/
+ ln -s /usr/share/java/${_pkgname}/appassembler/bin/"$_pkgname" "$pkgdir"/usr/bin
+}