From 83fb7754ad2ba009bd7460bd516df49f4db89791 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Wed, 27 Mar 2019 11:57:59 -0700 Subject: [PATCH] Add basic PKGBUILD --- .gitignore | 5 +++++ Makefile | 2 +- PKGBUILD | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore index bd451856..64c4f73e 100755 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,8 @@ core .vscode/* venv/* onionr/fs* + +# package files +onionr-*.pkg.tar.gz +pkg/ +src/ diff --git a/Makefile b/Makefile index f3ba33cb..2f48cf0f 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ PREFIX = /usr/local .DEFAULT_GOAL := setup setup: - sudo pip3 install -r requirements.txt + pip3 install -r requirements.txt --require-hashes --user -@cd onionr/static-data/ui/; ./compile.py install: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000..c94ca729 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +url="https://onionr.net/" +pkgname="onionr" +pkgver=0.0 +pkgrel=1 +pkgdesc="P2P anonymous storage network" +arch=("x86_64") +license=('GPL') +source=("onionr-${pkgver}::git+https://gitlab.com/beardog/onionr.git#branch=master") +md5sums=('SKIP') +makedepends=('git', 'python3-pip') + +build() { + cd "$pkgname-${pkgver}" + make +} + +package() { + cd "$pkgname-${pkgver}" + # make install +}