You are not logged in.

#1 2018-07-02 17:47:33

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Help Creating First PKGBUILD

Hello Everyone,
I made a PKGBUILD. Here is is:

# Maintainer: Aneesh <(e00f2ba9447a8b6d824fce0cf65d81d30f0187d8cd192301f9ab4840da4c698c [encoded in sha256])@gmail.com>
pkgname=pkg
pkgver=0.0.1
pkgrel=1
epoch=
pkgdesc="A Simple Pacman Wrapper"
arch=('x86_64')
url="https://bitbucket.org/SealsRock12/pkg/src/master/"
license=('GPL')
groups=()
depends=('bash' 'pacman')
makedepends=('sudo')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
#install=
#changelog=
source=("https://bitbucket.org/SealsRock12/pkg/raw/a94f1d58619838f30f2f0faaa92b1cfa400ef28c/src/pkg")
md5sums=('c35ecbcfd0eb2d3424405bf8d6e754b2')
validpgpkeys=()

package() {
        sudo mv src/pkg /usr/bin
}

But when I run makepkg -s on it:

==> Making package: pkg 0.0.1-1 (Mon 02 Jul 2018 10:15:25 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   244  100   244    0     0    475      0 --:--:-- --:--:-- --:--:--   475
==> Validating source files with md5sums...
    pkg ... Passed
==> Extracting sources...
mkdir: cannot create directory ‘/home/aneesh/PKGBUILDS/pkg-pkgbuild/pkg’: File exists

==> ERROR: An unknown error has occurred. Exiting...

I don't understand why it is trying to create a directory called pkg. Can you help me fix this?


-- SealsRock12

Offline

#2 2018-07-02 17:54:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Help Creating First PKGBUILD

pkg is a terrible name because, as you have seen, makepkg creates a directory called pkg as part of the build.

Remove all the empy variables, build in a clean chroot and use namcap.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-02 18:14:16

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Help Creating First PKGBUILD

Also your package function is incorrect, sudo isn't needed and you should be copying into $pkgdir/usr/bin


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB