diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9cf8cf3fe8c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ardhue-git + pkgdesc = Interface to control ArdHue Arduino based digital RGB system + pkgver = 0.1 + pkgrel = 1 + url = https://github.com/gabmus/ardhue + arch = any + license = GPL3 + makedepends = git + makedepends = meson + depends = python-serial + depends = gtk3>=3.14 + depends = python + provides = ardhue + conflicts = ardhue + source = ardhue::git+https://github.com/gabmus/ardhue + sha256sums = SKIP + +pkgname = ardhue-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0ac0052c00ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Gabriele Musco <emaildigabry@gmail.com> +# Upstream URL: https://github.com/gabmus/razercommander + +pkgname=ardhue-git +pkgver=0.1 +pkgrel=1 +pkgdesc='Interface to control ArdHue Arduino based digital RGB system' +arch=('any') +url='https://github.com/gabmus/ardhue' +license=('GPL3') +depends=('python-serial' 'gtk3>=3.14' 'python') +makedepends=('git' 'meson') +provides=('ardhue') +conflicts=('ardhue') +source=("ardhue::git+https://github.com/gabmus/ardhue") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/ardhue" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/ardhue" + rm -rf build + mkdir build + cd build + meson --prefix /usr --buildtype release .. + ninja +} + +package() { + cd "$srcdir/ardhue" + cd build + DESTDIR="$pkgdir" ninja install +} |