summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorM0Rf302019-09-07 15:04:21 +0200
committerM0Rf302019-09-07 15:04:21 +0200
commit6f6e4d4c88ce5df143126565a329e7549d473d59 (patch)
treed4c967989ae09ac21b3964e18564854779a6b8b6 /PKGBUILD
downloadaur-ton-node.tar.gz
ton-node: first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
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')