summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2018-07-23 11:01:45 +0200
committerMaxime Gauduin2018-07-23 11:01:45 +0200
commit19342e064fccee1d7ef15f41eedd64e1d2b8d0fd (patch)
tree7c16ae36bd7035bd7cbe27221404b453b954dda4
downloadaur-19342e064fccee1d7ef15f41eedd64e1d2b8d0fd.tar.gz
Add qnap-qdk-git
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f8bfd005d85
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Jul 23 09:01:45 UTC 2018
+pkgbase = qnap-qdk-git
+ pkgdesc = QNAP Development Kit
+ pkgver = 2.3.2.r48.0cff933
+ pkgrel = 1
+ url = https://github.com/qnap-dev/QDK
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = rsync
+ optdepends = p7zip: Support for 7z compression
+ provides = qnap-qdk
+ conflicts = qnap-qdk
+ source = git+https://github.com/qnap-dev/QDK.git
+ sha256sums = SKIP
+
+pkgname = qnap-qdk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d512b2ecc9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Daniel Seymour <dannyseeless@gmail.com>
+
+pkgname=qnap-qdk-git
+pkgver=2.3.2.r48.0cff933
+pkgrel=1
+pkgdesc='QNAP Development Kit '
+arch=('x86_64')
+url='https://github.com/qnap-dev/QDK'
+license=('GPL')
+depends=('rsync')
+makedepends=('git')
+optdepends=('p7zip: Support for 7z compression')
+provides=('qnap-qdk')
+conflicts=('qnap-qdk')
+source=('git+https://github.com/qnap-dev/QDK.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd QDK
+
+ source shared/qdk.conf
+ echo "${QDK_VERSION}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ sed -i 's/\/etc\/config/\/etc/g; s/\/usr\/local/\/usr/g' QDK/shared/bin/qbuild
+ sed -i 's/^QDK_PATH_P=.*/QDK_PATH_P=\/opt/' QDK/shared/qdk.conf
+}
+
+build(){
+ make -C QDK/src
+}
+
+package() {
+ install -dm 755 "${pkgdir}"/{usr/bin,opt/QDK}
+ cp -dr --no-preserve='ownership' QDK/shared/{bin,doc,scripts,template} "${pkgdir}"/opt/QDK/
+ install -Dm 644 QDK/shared/qdk.conf -t "${pkgdir}"/etc/
+ ln -s /opt/QDK/bin/qbuild "${pkgdir}"/usr/bin/
+ ln -s /opt/QDK/bin/qpkg_encrypt "${pkgdir}"/usr/bin/
+}
+
+# vim: ts=2 sw=2 et: