Package Details: golang-deepin-gir-git 2.2.0.r4.g1a60448-1

Git Clone URL: (read-only, click to copy)
Package Base: golang-deepin-gir-git
Description: Generate static golang bindings for GObject
Upstream URL:
Licenses: GPL3
Groups: deepin-git
Conflicts: golang-deepin-gir
Provides: golang-deepin-gir
Submitter: justforlxz
Maintainer: justforlxz
Last Packager: justforlxz
Votes: 0
Popularity: 0.000000
First Submitted: 2020-08-08 02:05 (UTC)
Last Updated: 2022-12-22 21:01 (UTC)

Latest Comments

lyamc commented on 2023-07-16 05:42 (UTC) (edited on 2023-07-16 05:45 (UTC) by lyamc)

Build fails for me. This should work:

pkgver() {
    cd $pkgname
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'

prepare() {
    cd "$srcdir"
    # Clone the repository if it's not already present.
    if [ ! -d "$pkgname" ]; then
        git clone "$url"

    cd "$srcdir/$pkgname"
    # Update existing files
    git fetch origin
    git checkout "$(git rev-parse --abbrev-ref HEAD)"

build() {
    export GOPATH="$srcdir/build:/usr/share/gocode"
    cd "$srcdir/$pkgname"
    # Building the package

check() {
    cd "$srcdir/$pkgname"
    # Running tests
    make test

package() {
    cd "$srcdir/$pkgname"
    # Installing the package, in this case, running 'make install'.
    DESTDIR="$pkgdir" make install