Date: Tuesday, December 8, 2015 @ 06:52:21 Author: fyan Revision: 150158
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: deepin-api/repos/community-staging-i686/ deepin-api/repos/community-staging-i686/PKGBUILD (from rev 150157, deepin-api/trunk/PKGBUILD) deepin-api/repos/community-staging-x86_64/ deepin-api/repos/community-staging-x86_64/PKGBUILD (from rev 150157, deepin-api/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) Copied: deepin-api/repos/community-staging-i686/PKGBUILD (from rev 150157, deepin-api/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2015-12-08 05:52:21 UTC (rev 150158) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> + +pkgname=deepin-api +pkgver=2.92.1.20151208 +_commit=fb83410f533eec79579ac11386520db3a733c550 +#_golibver=0.4.2 +_golibrev=902e89b94c9d657f523bcdabad399dc789dcf86e +#_dbusfactoryver=2.92.1 +_deepinfactoryrev=7257936bb7ed172fcec2c22e5253ab50eb84b85b +pkgrel=1 +pkgdesc='Go-lang bingdings for dde-daemon' +arch=('i686' 'x86_64') +url="https://gitcafe.com/Deepin/dde-api" +license=('GPL3') +depends=('glib2' 'gdk-pixbuf2' 'gtk3' 'libcanberra-pulse' 'libxi' 'libxfixes' 'rfkill' 'gcc-go' 'poppler-glib' 'deepin-metacity' 'xcur2png') +conflicts=('dde-api') +replaces=('dde-api') +groups=('deepin') +makedepends=('git' 'deepin-dbus-generator' 'bzr') +source=(#"git+https://github.com/linuxdeepin/dde-api.git#tag=$pkgver" + "git+https://github.com/linuxdeepin/dde-api.git#commit=$_commit" + #"git+https://github.com/linuxdeepin/go-lib.git#tag=$_golibver" + "git+https://github.com/linuxdeepin/go-lib.git#commit=$_golibrev" + #"git+https://github.com/linuxdeepin/dbus-factory.git#tag=$_dbusfactoryver" + "git+https://github.com/linuxdeepin/dbus-factory.git#commit=$_deepinfactoryrev") +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + +prepare() { + export GOPATH="$srcdir/build" + mkdir -p build/src/pkg.deepin.io/lib + cp -a go-lib/* build/src/pkg.deepin.io/lib + + cd "$srcdir/dde-api" + make build-dep + go get gopkg.in/alecthomas/kingpin.v2 +} + +build(){ + cd "$srcdir/dbus-factory" + make install-golang + + cd "$srcdir/dde-api" + make USE_GCCGO=1 +} + +package() { + cd dde-api + make DESTDIR="${pkgdir}" install-binary + + mv "$pkgdir"/{lib/systemd,usr/lib/} + rmdir "$pkgdir/lib" +} Copied: deepin-api/repos/community-staging-x86_64/PKGBUILD (from rev 150157, deepin-api/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2015-12-08 05:52:21 UTC (rev 150158) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> + +pkgname=deepin-api +pkgver=2.92.1.20151208 +_commit=fb83410f533eec79579ac11386520db3a733c550 +#_golibver=0.4.2 +_golibrev=902e89b94c9d657f523bcdabad399dc789dcf86e +#_dbusfactoryver=2.92.1 +_deepinfactoryrev=7257936bb7ed172fcec2c22e5253ab50eb84b85b +pkgrel=1 +pkgdesc='Go-lang bingdings for dde-daemon' +arch=('i686' 'x86_64') +url="https://gitcafe.com/Deepin/dde-api" +license=('GPL3') +depends=('glib2' 'gdk-pixbuf2' 'gtk3' 'libcanberra-pulse' 'libxi' 'libxfixes' 'rfkill' 'gcc-go' 'poppler-glib' 'deepin-metacity' 'xcur2png') +conflicts=('dde-api') +replaces=('dde-api') +groups=('deepin') +makedepends=('git' 'deepin-dbus-generator' 'bzr') +source=(#"git+https://github.com/linuxdeepin/dde-api.git#tag=$pkgver" + "git+https://github.com/linuxdeepin/dde-api.git#commit=$_commit" + #"git+https://github.com/linuxdeepin/go-lib.git#tag=$_golibver" + "git+https://github.com/linuxdeepin/go-lib.git#commit=$_golibrev" + #"git+https://github.com/linuxdeepin/dbus-factory.git#tag=$_dbusfactoryver" + "git+https://github.com/linuxdeepin/dbus-factory.git#commit=$_deepinfactoryrev") +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + +prepare() { + export GOPATH="$srcdir/build" + mkdir -p build/src/pkg.deepin.io/lib + cp -a go-lib/* build/src/pkg.deepin.io/lib + + cd "$srcdir/dde-api" + make build-dep + go get gopkg.in/alecthomas/kingpin.v2 +} + +build(){ + cd "$srcdir/dbus-factory" + make install-golang + + cd "$srcdir/dde-api" + make USE_GCCGO=1 +} + +package() { + cd dde-api + make DESTDIR="${pkgdir}" install-binary + + mv "$pkgdir"/{lib/systemd,usr/lib/} + rmdir "$pkgdir/lib" +}