Skip to content

Commit

Permalink
document how to use Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
adelolmo committed Dec 14, 2022
1 parent 3b3b38e commit 1f1bf0b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 94 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#MAKEFLAGS += --silent
MAKEFLAGS += --silent

APP_HOME=usr/share/turtl
APP_HOME = usr/share/turtl
TAR_FILE = turtl-linux-$(VERSION)-$(ARCH).tar.bz2
TAR_URL = https://github.com/turtl/desktop/releases/download/v$(VERSION)/turtl-$(VERSION)-linux$(TAR_ARCH).tar.bz2

VERSION = 0.7.2.6-pre-sync-fix
PACKAGE_VERSION = ~ado1

BUILD_DIR = build
RELEASE_DIR = $(BUILD_DIR)/release
RELEASE_DIR := $(realpath $(CURDIR)/..)
TMP_DIR = $(BUILD_DIR)/tmp
TAR_CACHE = $(BUILD_DIR)/$(TAR_FILE)
PLATFORM := $(shell uname -m)
Expand Down Expand Up @@ -54,4 +55,4 @@ cp:

control:
$(eval SIZE=$(shell du -sbk $(TMP_DIR)/ | grep -o '[0-9]*'))
sed -i "s/{{version}}/$(VERSION)/;s/{{size}}/$(SIZE)/;s/{{architecture}}/$(ARCH)/" $(TMP_DIR)/DEBIAN/control
sed -i "s/{{version}}/$(VERSION)$(PACKAGE_VERSION)/;s/{{size}}/$(SIZE)/;s/{{architecture}}/$(ARCH)/" $(TMP_DIR)/DEBIAN/control
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ For more information about Turtl, please visit www.turtlapp.com

## How to install

```
wget https://github.com/adelolmo/turtl-debian/releases/download/v0.7.2.6/turtl_0.7.2.6_amd64.deb
sudo dpkg -i turtl_0.7.2.6_amd64.deb
```
Download the package from https://github.com/adelolmo/turtl-debian/releases and install it:

sudo dpkg -i turtl_0.7.2.6_amd64.deb

## How to build

Download the script ```package``` and run it locally.
```
wget https://raw.githubusercontent.com/adelolmo/turtl-debian/master/turtl_deb
/bin/sh package 64|32 [version]
```
The first parameter is the system architecture, it must be 32 or 64. The second parameter is the version of Turtl, if it's not given it will use the latest version available in https://turtlapp.com
The debian package will be created under build/releases.
make

Parameters available are `VERSION` and `ARCH`. e.g:

make VERSION=0.7.2.6-pre-sync-fix ARCH=i386

Turtle comes precompiled for `amd64` and `i386` architectures.
For the available versions, please visit https://turtlapp.com

## Oficial Turtl server URL

Expand Down
2 changes: 1 addition & 1 deletion deb/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: {{version}}
License: GPLv3
Vendor: Lyon Bros. Enterprises, LLC
Architecture: {{architecture}}
Maintainer: info@turtlapp.com
Maintainer: andoni.delolmo@gmail.com
Installed-Size: {{size}}
Section: default
Priority: extra
Expand Down
78 changes: 0 additions & 78 deletions package

This file was deleted.

0 comments on commit 1f1bf0b

Please sign in to comment.