summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2018-08-23 19:40:22 +1200
committerGeorge Rawlinson2018-08-23 19:40:22 +1200
commitafc76c17bc048da83ad56c7bbef430643c027735 (patch)
tree99f939cdee99564d729f006ca88d2b7d5b272c81
downloadaur-afc76c17bc048da83ad56c7bbef430643c027735.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore14
-rw-r--r--PKGBUILD51
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3089100e3b5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = goat-git
+ pkgdesc = Database management frontend written in Qt5 (git version)
+ pkgver = r151.7f25d1a
+ pkgrel = 1
+ url = https://github.com/mispp/goat
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = qt5-tools
+ depends = hicolor-icon-theme
+ depends = qt5-base
+ provides = goat
+ source = git+https://github.com/mispp/goat.git
+ md5sums = SKIP
+
+pkgname = goat-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f20b3205f09
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+# Directories
+pkg
+src
+goat
+
+# Archives
+*.tar
+*.tar.*
+*.zip
+*.tgz
+
+# Logs
+*.log
+*.log.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24d4c32f00e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <george@rawlinson.net.nz>
+
+_pkgname=goat
+pkgname=${_pkgname}-git
+pkgver=r151.7f25d1a
+pkgrel=1
+pkgdesc="Database management frontend written in Qt5 (git version)"
+arch=('i686' 'x86_64')
+#arch=('any')
+url="https://github.com/mispp/goat"
+license=('GPL')
+provides=(goat)
+depends=(hicolor-icon-theme qt5-base)
+makedepends=(git qt5-tools)
+source=("git+https://github.com/mispp/goat.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+
+ # create Makefile with QMake
+ qmake-qt5 \
+ "${srcdir}/${_pkgname}/${_pkgname}.pro" \
+ PREFIX="/usr"
+
+ # build package
+ make
+}
+
+package() {
+ # make install has some issues, so package manually
+ #make -C build INSTALL_ROOT="${pkgdir}" install
+
+ # add binary
+ install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/build/goat"
+
+ # add .desktop
+ install -Dm644 -t "${pkgdir}/usr/share/applications" "${srcdir}/${_pkgname}/packaging/${_pkgname}.desktop"
+
+ # add icon
+ install -Dm644 -t "${pkgdir}/usr/share/icons/hicolor/16x16/apps" "${srcdir}/${_pkgname}/packaging/${_pkgname}.png"
+}