Create Package Builder

This commit is contained in:
manijamali2003 2023-08-03 19:22:08 +04:30
parent 17367f644d
commit d80ae7cd13
6 changed files with 25 additions and 3 deletions

5
build/build.py Normal file
View file

@ -0,0 +1,5 @@
import shutil, os
shutil.make_archive("welcome", "gztar", "welcome")
os.system("makepkg -f")
os.remove("welcome.tar.gz")

20
build/pkgbuild Normal file
View file

@ -0,0 +1,20 @@
pkgname=welcome
destname="/usr"
pkgver=1
pkgrel=0
pkgdesc='Parch dorood (/do-rood/, درود, pronunciation) which is Persian word for "Greetings", is a welcome app in the Parch distribution.'
arch=('x86_64')
url="https://parchlinux.ir"
license=('GPL')
makedepends=()
depends=()
optdepends=()
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
source=("${pkgname}.tar.gz")
sha256sums=('SKIP')
package() {
install -dm755 ${pkgdir}${destname}
cp -r ${srcdir}/${pkgname}${destname}/* ${pkgdir}${destname}
}

View file

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
sudo cp -r usr /
sudo chmod +x /usr/bin/Welcome