You are not logged in.
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
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.
Offline
Also your package function is incorrect, sudo isn't needed and you should be copying into $pkgdir/usr/bin
Offline