summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD45
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e421511a15d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ton-node
+ pkgdesc = Telegram Open Network Full Node and Validator
+ pkgver = 1
+ pkgrel = 1
+ url = https://test.ton.org
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = cmake
+ makedepends = gperf
+ depends = openssl
+ conflicts = ton-lite-client
+ source = https://test.ton.org/ton-blockchain-full.tar.xz
+ source = https://test.ton.org/ton-global.config.json
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = ton-node
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3563cc4d89d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: robertfoster
+
+pkgname=ton-node
+pkgver=1
+pkgrel=1
+pkgdesc="Telegram Open Network Full Node and Validator"
+arch=('i686' 'x86_64')
+url="https://test.ton.org"
+license=('LGPL')
+depends=('openssl')
+makedepends=('cmake' 'gperf')
+conflicts=('ton-lite-client')
+#install=$pkgname.install
+source=("https://test.ton.org/ton-blockchain-full.tar.xz"
+"https://test.ton.org/ton-global.config.json")
+
+prepare() {
+ if [ ! -d $srcdir/${pkgname}-build ]; then
+ mkdir $srcdir/${pkgname}-build
+ fi
+
+ touch $srcdir/$pkgname/tonlib/TonlibConfig.cmake
+}
+
+build() {
+ cd $srcdir/$pkgname-build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr --build "$srcdir/${pkgname}"
+}
+
+package() {
+ cd $srcdir/${pkgname}-build
+ make DESTDIR="$pkgdir/" install
+ mkdir $pkgdir/usr/bin
+ rm -rf CMakeFiles
+ for i in $(find . -executable -type f); do
+ cp $i $pkgdir/usr/bin/
+ done
+ rm -rf $pkgdir/usr/bin/libtonlibjson.so.0.5
+
+ install -Dm644 $srcdir/ton-global.config.json $pkgdir/etc/ton-global.config.json
+ mkdir -p $pkgdir/var/ton-work/
+}
+
+md5sums=('SKIP'
+'SKIP')