summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ed7ba9999c212cdd0f3b14687fd7cd7ecdba4df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Your Name <someshwar1006@gmail.com>
pkgname=kernel-builder
pkgver=2.0
pkgrel=3
pkgdesc="Simplifies Linux kernel compilation with version selection, patching, and configuration options for Arch Linux and Ubuntu/Debian, enhancing installation efficiency and customization."
arch=('any')
url="https://github.com/Someshwar1006/Kernel-Builder"
license=('MIT')
depends=('python' 'python-requests' 'python-pip' 'python-distro')  # Added python-pip as a dependency
source=("https://github.com/Someshwar1006/Kernel-Builder/raw/main/kernel-builder-2.0.tar.gz")
sha256sums=('738c429410d2ece61c40075a6b602af36661eb33b0ceafd4c9bbfaa4648dab39')

package() {
  cd "$srcdir/"


  # Use pip to install requests to the package directory
  pip install --target="$pkgdir/usr/lib/$pkgname" requests

  # Install the main script and make it executable
  install -Dm755 main_AUR.py "$pkgdir/usr/bin/kernel-builder"
  install -Dm644 arch.py "$pkgdir/usr/lib/$pkgname/arch.py"
  install -Dm644 ubuntu.py "$pkgdir/usr/lib/$pkgname/ubuntu.py"

  # Install management scripts
  install -Dm644 arch_man.py "${pkgdir}/usr/lib/${pkgname}/arch_man.py"
  install -Dm644 ubuntu_man.py "${pkgdir}/usr/lib/${pkgname}/ubuntu_man.py"

  # Install license and readme
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}