project pages + copr install

pull/20/head
Miguel Mota 6 years ago
parent 0ba3dc32d1
commit dc02e6a1c0

3
.gitignore vendored

@ -34,3 +34,6 @@ bin
.flatpak-builder
build-dir
#repo
# do not ignore .flathub
# do not ignore .rpm
# do not ignore .copr

@ -0,0 +1,37 @@
%global commit cf0ad3b8a1cd8bc11d2eb59c3790785d6509fdf8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: cointop
Version: 1.0.5
Release: 6%{?dist}
Summary: Terminal based application for tracking cryptocurrencies
License: Apache-2.0
URL: https://cointop.sh
Source0: https://github.com/miguelmota/%{cointop}/archive/%{version}.tar.gz
BuildRequires: gcc
BuildRequires: golang >= 1.9-10
%description
cointop is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time.
%prep
%setup -q -n %{name}-%{version}
%build
mkdir -p ./_build/src/github.com/miguelmota
ln -s $(pwd) ./_build/src/github.com/miguelmota/%{name}
export GOPATH=$(pwd)/_build:%{gopath}
go build -ldflags=-linkmode=external -o x .
%install
install -d %{buildroot}%{_bindir}
install -p -m 0755 ./x %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root,-)
%doc LICENSE.md README.md
%{_bindir}/%{name}
%changelog

@ -73,6 +73,23 @@ flatpak/install:
flatpak/run:
flatpak run com.github.miguelmota.Cointop
rpm/deps:
sudo dnf install copr-cli
sudo dnf install rpm-build
sudo dnf install dnf-plugins-core
rpm/build:
rpmbuild -ba cointop.spec
copr/create-project:
copr-cli create cointop --chroot fedora-rawhide-x86_64
copr/build:
rm -rf ~/rpmbuild/SRPMS/cointop-*.rpm
copr-cli build cointop ~/rpmbuild/SRPMS/cointop-*.rpm
copr/publish:
brew/clean: brew/remove
brew cleanup --force cointop
brew prune

@ -92,7 +92,8 @@ Run cointop flatpak
flatpak run com.github.miguelmota.Cointop
```
<!--
cointop flathub [project page](https://flathub.org/apps/details/com.github.miguelmota.Cointop)
### Copr (Fedora)
cointop is available as a [copr](https://copr.fedorainfracloud.org/) package.
@ -108,7 +109,8 @@ Install cointop
````bash
sudo dnf install cointop
````
-->
cointop copr [project page](https://copr.fedorainfracloud.org/coprs/miguelmota/cointop/).
### Snap (Ubuntu)
@ -124,6 +126,8 @@ Running snap:
sudo snap run cointop
```
cointop snapcraft [project page](https://snapcraft.io/cointop).
Note: snaps don't work in Windows WSL. See this [issue thread](https://forum.snapcraft.io/t/windows-subsystem-for-linux/216).
### Windows WSL (Windows)

Loading…
Cancel
Save