mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Merge pull request #174 from terrapkg/packages/vala-lint-nightly
Add vala-lint-nightly #173
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "vala-lint-nightly.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
if filters.contains("nightly") {
|
||||
let req = new_req("https://api.github.com/repos/vala-lang/vala-lint/commits/HEAD");
|
||||
req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`);
|
||||
let sha = json(req.get()).sha;
|
||||
rpm.global("commit", sha);
|
||||
rpm.release();
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
%global real_name vala-lint
|
||||
|
||||
%global commit 923adb5d3983ed654566304284607e3367998e22
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
%global commit_date %(date '+%Y%m%d')
|
||||
%global snapshot_info %{commit_date}.%{shortcommit}
|
||||
|
||||
Name: vala-lint-nightly
|
||||
Summary: Check Vala code files for code-style errors
|
||||
Version: 0.1.0^%{snapshot_info}
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
|
||||
URL: https://github.com/vala-lang/vala-lint
|
||||
Source0: https://github.com/vala-lang/vala-lint/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: meson
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: vala >= 0.48.12
|
||||
BuildRequires: vala-devel >= 0.48.12
|
||||
|
||||
%description
|
||||
Small command line tool and library for checking Vala code files for code-style errors.
|
||||
Based on the elementary Code-Style guidelines.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for vala-lint
|
||||
Requires: vala-lint-nightly = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the libraries and header files that are needed
|
||||
for using vala-lint as a library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{real_name}-%{commit}
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
ln -sf %{_bindir}/io.elementary.vala-lint %{buildroot}%{_bindir}/vala-lint
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{_bindir}/io.elementary.vala-lint
|
||||
%{_bindir}/vala-lint
|
||||
%{_libdir}/libvala-linter-1.0.so*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/vala-linter-1.0/vala-linter.h
|
||||
%{_libdir}/pkgconfig/vala-linter-1.pc
|
||||
%{_datadir}/vala/vapi/vala-linter-1.vapi
|
||||
|
||||
%changelog
|
||||
* Tue Feb 7 2023 lleyton <lleyton@fyralabs.com>
|
||||
- Initial package
|
||||
Reference in New Issue
Block a user