You are not logged in.
I've decided today that I have to make my first pkg and, if everything goes well, try to put it into AUR.
Two problems I currently have:
1. I'm using 'makepkg --skipinteg' because I get error after cloning robtk:
Integrity checks (md5) differ in size from the source array.
I don't know what to do with it. Should I contact the maintaner of github package?
2. 'makepkg --skipinteg' outputs package, but when I try to 'pacman -U' it, I'm getting error:
scarlett-mixer: /usr/local/share/man exists in filesystem
When I manually clone https://github.com/x42/scarlett-mixer and 'make install' everything works.
Any help appreciated.
PKGINFO:
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=scarlett-mixer
pkgver=0.1.1
pkgrel=1
pkgdesc=""
arch=('any')
url="https://github.com/x42/$pkgname"
license=('GPL2')
depends=('pango' 'cairo' 'lv2' 'alsa-utils')
makedepends=('make' 'pkg-config' 'gcc')
provides=()
conflicts=()
source=("git://github.com/x42/$pkgname.git"
"git://github.com/x42/robtk.git")
md5sums=('SKIP')
prepare() {
#cd "$pkgname-$pkgver"
cd "$pkgname"
git submodule init
git config submodule.robtk.url $srcdir/robtk
git submodule update
}
#build() {
# cd "$pkgname"
# make
#}
#check() {
# cd "$pkgname-$pkgver"
# make -k check
#}
package() {
#cd "$pkgname-$pkgver"
cd "$pkgname"
make DESTDIR="$pkgdir/" install
}
Offline
1. You're getting the error because you have 2 entries in the source array, but only one in the md5sums array.
2. Packages should not be installing anything to /usr/local at all. You need to use a /usr prefix.
As it is, that PKGBUILD is pretty bad. Doesn't build in the build function, wrong arch, missing quotes, bad makedeps, etc. I would suggest fixing it up as best you know how, then asking for a full review.
You'll also want to read this: https://wiki.archlinux.org/index.php/VC … guidelines
Last edited by Scimmia (2018-03-06 20:03:13)
Offline