From 446f7bd8e70a6076fbb7a0fd5c4ced320d7c31d6 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 12 Jun 2021 17:58:00 +0100 Subject: [PATCH] updated templates --- templates/python.build.sh | 23 +++++++++++++++++++++++ templates/simple.build.sh | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 templates/python.build.sh diff --git a/templates/python.build.sh b/templates/python.build.sh new file mode 100644 index 0000000..55789d8 --- /dev/null +++ b/templates/python.build.sh @@ -0,0 +1,23 @@ +pkgname=python- +pkgver= + +fetch() { + curl "" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz +} + +build() { + cd $pkgname-$pkgver + python setup.py build +} + +package() { + cd $pkgname-$pkgver + python setup.py install --root=$pkgdir --skip-build +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +} diff --git a/templates/simple.build.sh b/templates/simple.build.sh index 83e0e3e..ddbebfb 100644 --- a/templates/simple.build.sh +++ b/templates/simple.build.sh @@ -10,8 +10,8 @@ build() { cd $pkgname-$pkgver ./configure \ --prefix=/usr \ - --build=x86_64-unknown-linux-musl \ - --host=x86_64-unknown-linux-musl + --build=$TRIPLE \ + --host=$TRIPLE make }