Jguer 601f56c348 Update vendor dependencies to latest version. Prepare for stable base il y a 7 ans
..
test_pkgbuilds 601f56c348 Update vendor dependencies to latest version. Prepare for stable base il y a 7 ans
LICENSE f0b9c0cfe9 Vendoring and cool looking displays il y a 7 ans
README.md f0b9c0cfe9 Vendoring and cool looking displays il y a 7 ans
lex.go 601f56c348 Update vendor dependencies to latest version. Prepare for stable base il y a 7 ans
pkgbuild.go 601f56c348 Update vendor dependencies to latest version. Prepare for stable base il y a 7 ans
pkgbuild_test.go 601f56c348 Update vendor dependencies to latest version. Prepare for stable base il y a 7 ans
version.go 12bc784f60 Updated vendor directory il y a 7 ans
version_test.go 4218a47ef2 Updated vendored packages il y a 7 ans

README.md

GoDoc

goPKGBUILD

A golang package for parsing Arch Linux .SRCINFO files (PKGBUILDs).

TODO

  • Handle split PKGBUILDs like linux
  • Try to parse maintainer from top of PKGBUILD
  • Handle multiple dependency versions
  • Add support for reading a .SRCINFO file directly
  • Update to pacman 4.2

Usage

Godoc

Example usage

package main

import (
    "fmt"

    "github.com/mikkeloscar/gopkgbuild"
)

func main() {
    pkgb, err := ParseSRCINFO("/path/to/.SRCINFO")
    if err != nil {
        fmt.Println(err)
    }

    for _, subPkg := range pkgb.Pkgnames {
       fmt.Printf("Package name: %s", subPkg)
    }
}

LICENSE

Copyright (C) 2016 Mikkel Oscar Lyderik Larsen

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.