forked from Plemya-x/ALR
		
	Изменение ссылки на gitea.plemya-x.ru
This commit is contained in:
		@@ -7,7 +7,7 @@ builds:
 | 
				
			|||||||
      - CGO_ENABLED=0
 | 
					      - CGO_ENABLED=0
 | 
				
			||||||
    binary: alr
 | 
					    binary: alr
 | 
				
			||||||
    ldflags:
 | 
					    ldflags:
 | 
				
			||||||
      - -X https://gitverse.ru/Xpamych/ALR/content/master/internal/config.Version={{.Version}}
 | 
					      - -X gitea.plemya-x.ru/xpamych/ALR/src/branch/master/internal/config.Version={{.Version}}
 | 
				
			||||||
    goos:
 | 
					    goos:
 | 
				
			||||||
      - linux
 | 
					      - linux
 | 
				
			||||||
    goarch:
 | 
					    goarch:
 | 
				
			||||||
@@ -39,7 +39,7 @@ nfpms:
 | 
				
			|||||||
      {{- else if .Arch | eq "arm64"}}aarch64
 | 
					      {{- else if .Arch | eq "arm64"}}aarch64
 | 
				
			||||||
      {{- else }}{{ .Arch }}{{ end -}}
 | 
					      {{- else }}{{ .Arch }}{{ end -}}
 | 
				
			||||||
    description: "Any Linux Repository"
 | 
					    description: "Any Linux Repository"
 | 
				
			||||||
    homepage: 'https://gitverse.ru/Xpamych/ALR'
 | 
					    homepage: 'https://gitea.plemya-x.ru/xpamych/ALR'
 | 
				
			||||||
    maintainer: 'Евгений Храмов <xpamych@yandex.ru>'
 | 
					    maintainer: 'Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
    license: GPLv3
 | 
					    license: GPLv3
 | 
				
			||||||
    formats:
 | 
					    formats:
 | 
				
			||||||
@@ -60,7 +60,7 @@ nfpms:
 | 
				
			|||||||
        dst: /usr/share/zsh/site-functions/_alr
 | 
					        dst: /usr/share/zsh/site-functions/_alr
 | 
				
			||||||
aurs:
 | 
					aurs:
 | 
				
			||||||
  - name: linux-user-repository-bin
 | 
					  - name: linux-user-repository-bin
 | 
				
			||||||
    homepage: 'https://gitverse.ru/Xpamych/ALR'
 | 
					    homepage: 'https://gitea.plemya-x.ru/xpamych/ALR'
 | 
				
			||||||
    description: "Any Linux Repository"
 | 
					    description: "Any Linux Repository"
 | 
				
			||||||
    maintainers:
 | 
					    maintainers:
 | 
				
			||||||
      - 'Евгений Храмов <xpamych@yandex.ru>'
 | 
					      - 'Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -17,9 +17,7 @@ build: check-no-root $(BIN)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export CGO_ENABLED := 0
 | 
					export CGO_ENABLED := 0
 | 
				
			||||||
$(BIN):
 | 
					$(BIN):
 | 
				
			||||||
	go build \
 | 
						go build -ldflags="-X 'gitea.plemya-x.ru/xpamych/ALR/internal/config.Version=$(GIT_VERSION)'" -o $@
 | 
				
			||||||
		-ldflags="-X 'gitverse.ru/Xpamych/ALR/internal/config.Version=$(GIT_VERSION)'" \
 | 
					 | 
				
			||||||
		-o $@
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
check-no-root:
 | 
					check-no-root:
 | 
				
			||||||
	@if [[ "$$(whoami)" == 'root' ]]; then \
 | 
						@if [[ "$$(whoami)" == 'root' ]]; then \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@ ALR написан на чистом Go и после сборки не имее
 | 
				
			|||||||
curl -fsSL plemya-x.ru/alr/install.sh | bash
 | 
					curl -fsSL plemya-x.ru/alr/install.sh | bash
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**ВАЖНО**: При этом скрипт будет загружен и запущен с <https://gitverse.ru/Xpamych/ALR/install>. Пожалуйста, просматривайте любые скрипты, которые вы скачиваете из Интернета (включая этот), прежде чем запускать их.
 | 
					**ВАЖНО**: При этом скрипт будет загружен и запущен с <https://gitea.plemya-x.ru/xpamych/ALR/install>. Пожалуйста, просматривайте любые скрипты, которые вы скачиваете из Интернета (включая этот), прежде чем запускать их.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Сборка из исходного кода
 | 
					### Сборка из исходного кода
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -42,16 +42,18 @@ ALR был создан потому, что упаковка программн
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Документация
 | 
					## Документация
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Документация по всем этим вопросам находится в [Wiki](https://gitverse.ru/Xpamych/ALR).
 | 
					Документация по всем этим вопросам находится в [Wiki](https://gitea.plemya-x.ru/xpamych/ALR/wiki/Home).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Репозитории
 | 
					## Репозитории
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Репозитории alr - это git-хранилища, которые содержат каталог для каждого пакета с файлом `alr.sh` внутри. Файл `alr.sh` содержит все инструкции по сборке пакета и информацию о нем. Скрипты `alr.sh` аналогичны скриптам Aur PKGBUILD.
 | 
					Репозитории alr - это git-хранилища, которые содержат каталог для каждого пакета с файлом `alr.sh` внутри. Файл `alr.sh` содержит все инструкции по сборке пакета и информацию о нем. Скрипты `alr.sh` аналогичны скриптам Aur PKGBUILD. Репозиторий [по-умолчанию](https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
## Соцсети
 | 
					## Соцсети
 | 
				
			||||||
 | 
					VK - https://vk.com/plemya_kh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Discord - https://discord.com/channels/817759634105827358/1261631565084233749
 | 
					Discord - https://discord.com/channels/817759634105827358/1261631565084233749
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Telegram - https://t.me/plemyakh
 | 
					Telegram - https://t.me/plemyakh
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,7 +35,7 @@ var defaultConfig = &types.Config{
 | 
				
			|||||||
	Repos: []types.Repo{
 | 
						Repos: []types.Repo{
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Name: "default",
 | 
								Name: "default",
 | 
				
			||||||
			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git",
 | 
								URL:  "https://gitea.plemya-x.ru/xpamych/ALR.git",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,7 +37,7 @@ var testPkg = db.Package{
 | 
				
			|||||||
		"ru": "Проверочный пакет",
 | 
							"ru": "Проверочный пакет",
 | 
				
			||||||
	}),
 | 
						}),
 | 
				
			||||||
	Homepage: db.NewJSON(map[string]string{
 | 
						Homepage: db.NewJSON(map[string]string{
 | 
				
			||||||
		"en": "https://gitverse.ru/Xpamych/ALR/",
 | 
							"en": "https://gitea.plemya-x.ru/xpamych/ALR",
 | 
				
			||||||
	}),
 | 
						}),
 | 
				
			||||||
	Maintainer: db.NewJSON(map[string]string{
 | 
						Maintainer: db.NewJSON(map[string]string{
 | 
				
			||||||
		"en": "Evgeniy Khramov <xpamych@yandex.ru>",
 | 
							"en": "Evgeniy Khramov <xpamych@yandex.ru>",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,7 +56,7 @@ const testScript = `
 | 
				
			|||||||
	release=1
 | 
						release=1
 | 
				
			||||||
	epoch=2
 | 
						epoch=2
 | 
				
			||||||
	desc="Test package"
 | 
						desc="Test package"
 | 
				
			||||||
	homepage='https://gitverse.ru/Xpamych/ALR'
 | 
						homepage='//https://gitea.plemya-x.ru/xpamych/ALR'
 | 
				
			||||||
	maintainer='Евгений Храмов <xpamych@yandex.ru>'
 | 
						maintainer='Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
	architectures=('arm64' 'amd64')
 | 
						architectures=('arm64' 'amd64')
 | 
				
			||||||
	license=('GPL-3.0-or-later')
 | 
						license=('GPL-3.0-or-later')
 | 
				
			||||||
@@ -116,8 +116,8 @@ func TestDecodeVars(t *testing.T) {
 | 
				
			|||||||
		Release:       1,
 | 
							Release:       1,
 | 
				
			||||||
		Epoch:         2,
 | 
							Epoch:         2,
 | 
				
			||||||
		Description:   "Test package",
 | 
							Description:   "Test package",
 | 
				
			||||||
		Homepage:      "https://gitverse.ru/Xpamych/ALR",
 | 
							Homepage:      "https://gitea.plemya-x.ru/xpamych/ALR",
 | 
				
			||||||
		Maintainer:    "Arsen Musayelyan <arsen@arsenm.dev>",
 | 
							Maintainer:    "Евгений Храмов <xpamych@yandex.ru>",
 | 
				
			||||||
		Architectures: []string{"arm64", "amd64"},
 | 
							Architectures: []string{"arm64", "amd64"},
 | 
				
			||||||
		Licenses:      []string{"GPL-3.0-or-later"},
 | 
							Licenses:      []string{"GPL-3.0-or-later"},
 | 
				
			||||||
		Provides:      []string{"test"},
 | 
							Provides:      []string{"test"},
 | 
				
			||||||
@@ -139,8 +139,8 @@ func TestDecodeVarsMissing(t *testing.T) {
 | 
				
			|||||||
		name='test'
 | 
							name='test'
 | 
				
			||||||
		epoch=2
 | 
							epoch=2
 | 
				
			||||||
		desc="Test package"
 | 
							desc="Test package"
 | 
				
			||||||
		homepage='https://gitverse.ru/Xpamych/ALR'
 | 
							homepage='https://gitea.plemya-x.ru/xpamych/ALR'
 | 
				
			||||||
		maintainer='Arsen Musayelyan <arsen@arsenm.dev>'
 | 
							maintainer='Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
		architectures=('arm64' 'amd64')
 | 
							architectures=('arm64' 'amd64')
 | 
				
			||||||
		license=('GPL-3.0-or-later')
 | 
							license=('GPL-3.0-or-later')
 | 
				
			||||||
		provides=('test')
 | 
							provides=('test')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,7 +36,7 @@ const testScript = `
 | 
				
			|||||||
	release=1
 | 
						release=1
 | 
				
			||||||
	epoch=2
 | 
						epoch=2
 | 
				
			||||||
	desc="Test package"
 | 
						desc="Test package"
 | 
				
			||||||
	homepage='https://gitverse.ru/Xpamych/ALR'
 | 
						homepage='https://gitea.plemya-x.ru/xpamych/ALR'
 | 
				
			||||||
	maintainer='Евгений Храмов <xpamych@yandex.ru>'
 | 
						maintainer='Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
	architectures=('arm64' 'amd64')
 | 
						architectures=('arm64' 'amd64')
 | 
				
			||||||
	license=('GPL-3.0-or-later')
 | 
						license=('GPL-3.0-or-later')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,7 +44,7 @@ func TestFindPkgs(t *testing.T) {
 | 
				
			|||||||
	err = repos.Pull(ctx, []types.Repo{
 | 
						err = repos.Pull(ctx, []types.Repo{
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Name: "default",
 | 
								Name: "default",
 | 
				
			||||||
			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git",
 | 
								URL:  "https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -81,7 +81,7 @@ func TestPull(t *testing.T) {
 | 
				
			|||||||
	err = repos.Pull(ctx, []types.Repo{
 | 
						err = repos.Pull(ctx, []types.Repo{
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Name: "default",
 | 
								Name: "default",
 | 
				
			||||||
			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git",
 | 
								URL:  "https://gitea.plemya-x.ru/xpamych/ALR.git",
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -109,7 +109,7 @@ if [ -z "$noPkgMgr" ]; then
 | 
				
			|||||||
  info "Готово!"
 | 
					  info "Готово!"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  info "Клонирование репозитория ALR"
 | 
					  info "Клонирование репозитория ALR"
 | 
				
			||||||
  git clone https://gitverse.ru/sc/Xpamych/ALR.git /tmp/alr
 | 
					  git clone https://gitea.plemya-x.ru/xpamych/ALR.git /tmp/alr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  info "Установка ALR"
 | 
					  info "Установка ALR"
 | 
				
			||||||
  cd /tmp/alr
 | 
					  cd /tmp/alr
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user