From f67650f7e1d3c48e6fd123ac4c8537220d6ab053 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 21 Nov 2015 18:15:59 +0100 Subject: added build chain for arch linux --- packages/arch/Makefile | 8 ++++++++ packages/arch/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ qspaceapi.pro | 6 +++++- 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 packages/arch/Makefile create mode 100644 packages/arch/PKGBUILD diff --git a/packages/arch/Makefile b/packages/arch/Makefile new file mode 100644 index 0000000..a0c5121 --- /dev/null +++ b/packages/arch/Makefile @@ -0,0 +1,8 @@ +package: + makepkg -cf + +install: + makepkg -i qspacestatus-master.tar.gz + +clean: + rm -f *.tar.gz *.tar diff --git a/packages/arch/PKGBUILD b/packages/arch/PKGBUILD new file mode 100644 index 0000000..552928c --- /dev/null +++ b/packages/arch/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Your Name +pkgname=qspacestatus +pkgver=0.1 +pkgrel=1 +epoch= +pkgdesc="A QT system tray icon for spaceAPI. Is your hackerspace currently open?" +arch=('i686' 'x86_64') +url="http://git.entwicklerseite.de/qspacestatus" +license=('GPL') +# groups=() +depends=(qt5-base) +makedepends=(git) +# checkdepends=() +# optdepends=() +# provides=() +# conflicts=() +# replaces=() +# backup=() +# options=() +# install= +# changelog="http://git.entwicklerseite.de/qspacestatus/log/?showmsg=1" (must be local) +#source=("$pkgname-$pkgver.tar.gz" +# "$pkgname-$pkgver.patch") +source=("http://git.entwicklerseite.de/qspacestatus/snapshot/qspacestatus-master.tar.gz") +noextract=() +md5sums=(aef78b78fe34adc704391d89f893b6ff) +validpgpkeys=() + +# prepare() { +# cd "$pkgname-$pkgver" +# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +# } + +build() { + # cd "$pkgname-$pkgver" + # wget http://git.entwicklerseite.de/qspacestatus/snapshot/qspacestatus-master.tar.gz + cd qspacestatus-master/ + qmake . + # ./configure --prefix=/usr/local + make +} + +# check() { +# cd "$pkgname-$pkgver" +# make -k check +# } + +package() { + # cd "$pkgname-$pkgver" + cd qspacestatus-master/ + make DESTDIR="$pkgdir/" install +} diff --git a/qspaceapi.pro b/qspaceapi.pro index 7e25d7c..117f34e 100644 --- a/qspaceapi.pro +++ b/qspaceapi.pro @@ -12,6 +12,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = qspacestatus TEMPLATE = app +target.path = /usr/local/bin/ +INSTALLS += target SOURCES += main.cpp\ mainwindow.cpp @@ -21,6 +23,8 @@ HEADERS += mainwindow.h FORMS += mainwindow.ui DISTFILES += \ - folder.png + folder.png \ + packages/arch/PKGBUILD \ + packages/arch/Makefile RESOURCES += -- cgit v1.2.3