update build system

This commit is contained in:
Bilal Elmoussaoui 2017-06-24 20:52:24 +02:00
parent 0e4b5fa430
commit a2d42edde0
3 changed files with 21 additions and 12 deletions

View file

@ -1,12 +1,13 @@
pkgbase = hardcode-tray-git pkgbase = hardcode-tray-git
pkgdesc = Fixes Hardcoded Tray Icons pkgdesc = Fixes Hardcoded Tray Icons
pkgver = 3.8.r8.g1c5c822 pkgver = 4.0.r0.g8ec819f
pkgrel = 2 pkgrel = 1
url = https://github.com/bil-elmoussaoui/Hardcode-Tray url = https://github.com/bil-elmoussaoui/Hardcode-Tray
arch = i686 arch = i686
arch = x86_64 arch = x86_64
license = GPL-3.0 license = GPL-3.0
makedepends = git makedepends = ninja
makedepends = meson
depends = python depends = python
depends = python-gobject depends = python-gobject
depends = python-cairosvg depends = python-cairosvg
@ -14,12 +15,12 @@ pkgbase = hardcode-tray-git
depends = gtk3 depends = gtk3
optdepends = sni-qt-patched-git: patched qt4 sni plugin to enable icon modification optdepends = sni-qt-patched-git: patched qt4 sni plugin to enable icon modification
optdepends = inkscape: to convert svg to png with inkscape optdepends = inkscape: to convert svg to png with inkscape
optdepends = lib32-sni-qt-patched-git: 32-bit patched qt4 sni plugin to enable icon modification
provides = hardcode-tray-git provides = hardcode-tray-git
conflicts = hardcode-tray-fixer-git conflicts = hardcode-tray-fixer-git
conflicts = hardcode-tray conflicts = hardcode-tray
source = git://github.com/bil-elmoussaoui/Hardcode-Tray source = git://github.com/bil-elmoussaoui/Hardcode-Tray
sha256sums = SKIP sha256sums = SKIP
optdepends_x86_64 = lib32-sni-qt-patched-git: 32-bit patched qt4 sni plugin to enable icon modification
pkgname = hardcode-tray-git pkgname = hardcode-tray-git

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
pkg/
src/
*.tar.gz
*.tar.xz
Hardcode-Tray/

View file

@ -4,8 +4,8 @@
_pkgbase=hardcode-tray-git _pkgbase=hardcode-tray-git
_gitname=Hardcode-Tray _gitname=Hardcode-Tray
pkgname=$_pkgbase pkgname=$_pkgbase
pkgver=3.8.r8.g1c5c822 pkgver=4.0.r0.g8ec819f
pkgrel=2 pkgrel=1
pkgdesc="Fixes Hardcoded Tray Icons" pkgdesc="Fixes Hardcoded Tray Icons"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="https://github.com/bil-elmoussaoui/Hardcode-Tray" url="https://github.com/bil-elmoussaoui/Hardcode-Tray"
@ -13,6 +13,7 @@ license=('GPL-3.0')
provides=("$_pkgbase") provides=("$_pkgbase")
makedepends=("git") makedepends=("git")
conflicts=("hardcode-tray-fixer-git" "hardcode-tray") conflicts=("hardcode-tray-fixer-git" "hardcode-tray")
makedepends=('ninja' 'meson')
depends=('python' 'python-gobject' 'python-cairosvg' 'librsvg' 'gtk3') depends=('python' 'python-gobject' 'python-cairosvg' 'librsvg' 'gtk3')
optdepends=('sni-qt-patched-git: patched qt4 sni plugin to enable icon modification' 'inkscape: to convert svg to png with inkscape') optdepends=('sni-qt-patched-git: patched qt4 sni plugin to enable icon modification' 'inkscape: to convert svg to png with inkscape')
optdepends_x86_64=('lib32-sni-qt-patched-git: 32-bit patched qt4 sni plugin to enable icon modification') optdepends_x86_64=('lib32-sni-qt-patched-git: 32-bit patched qt4 sni plugin to enable icon modification')
@ -27,10 +28,12 @@ pkgver() {
) )
} }
package() { build() {
install -Dm755 "$srcdir/$_gitname/hardcode-tray.py" "$pkgdir/opt/$_gitname/hardcode-tray.py" cd "$srcdir/${_gitname}"
install -Dm755 "$srcdir/$_gitname/hardcode-tray" "$pkgdir/usr/bin/hardcode-tray" meson builddir --prefix=/usr
install -d "$pkgdir/opt/$_gitname" }
cp -r -f "$srcdir/$_gitname/src" "$pkgdir/opt/$_gitname"
cp -r -f "$srcdir/$_gitname/data" "$pkgdir/opt/$_gitname" package() {
cd "$srcdir/${_gitname}"
DESTDIR="${pkgdir}" ninja -C builddir install
} }