# Maintainer: Dimitris Kiziridis pkgname=goxygen pkgver=0.3.4 pkgrel=1 pkgdesc="Generate a modern Web project with Go, Angular/React/Vue, and MongoDB in seconds" arch=('x86_64') url='https://github.com/Shpota/goxygen' license=('Apache') depends=('docker' 'docker-compose' 'nodejs' 'npm') makedepends=('go') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('9c3bce5352fdd334e5e9ef9f5208c71a2e8d010d8364fce133714429036527a6') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" mkdir -p build/ } build() { cd "${srcdir}/${pkgname}-${pkgver}" export CGO_LDFLAGS="${LDFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" go build -o build } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -Dm755 build/goxygen "${pkgdir}/usr/bin/goxygen" install -d "${pkgdir}/usr/share/doc/${pkgname}" cp -aR templates "${pkgdir}/usr/share/doc/${pkgname}" }