pkgname=llgo-git
pkgver=1
pkgrel=1
pkgdesc='LLVM frontend for Go'
arch=('x86_64')
url='https://github.com/llvm-mirror/llgo'
license=('GPL2')
depends=('go')
makedepends=('cmake' 'git' 'python' 'ninja')
source=("git+https://github.com/llvm/llvm-project.git")
sha256sums=('SKIP')
build() {
mkdir -p build
cd build
cmake ../llvm-project/llvm -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr -DLLVM_ENABLE_PROJECTS='clang;llgo'
ninja
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
# vim: ts=2 sw=2 et:
Edit:
The above started building but that is as far as I checked.
mass_t this seems a simple PKGBUILD to create as a first PKGBUILD see https://git.archlinux.org/svntogit/comm … ages/tint2 for a cmake PKGBUILD.
See VCS_package_guidelines#The_pkgver()_function and use git+https://github.com/llvm-mirror/llgo.git as the source.
As there are currently no releases / tags I am assuming this will be a -git package.
What I do wrong?
PKGBUILD https://pastebin.com/fTz9wEMR
==> Making package: llgo 1-1 (Fri Feb 8 13:08:01 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating llgo git repo...
Fetching origin
==> Validating source files with sha256sums...
llgo ... Skipped
==> Extracting sources...
-> Creating working copy of llgo git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Error at CMakeLists.txt:12 (llvm_add_go_executable):
Unknown CMake command "llvm_add_go_executable".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.13)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/tmp/llgo/src/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
Aborting...