You are not logged in.

#1 2016-01-07 14:10:52

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Is this correct for the video library, Alexandra?

As said in the title? Thank you.

# Maintainer: Acar Burak <acarbura at gmail dot com>

pkgname=alexandra
pkgver=1.4.0
pkgrel=1
pkgdesc="Qt5 Video library with posters, fetchable, searchable tags, selectable player..."
arch=("x86_64")
url="https://github.com/jeka-js/alexandra"
license=("GPL2")
depends=("qt5-base" "desktop-file-utils" "hicolor-icon-theme")
optdepends=("libmediainfo: for technical info")
provides=("$pkgname")
conflicts=("$pkgname-git" "$pkgname")
install="$pkgname.install"
source=("$pkgname-master.zip::https://github.com/jeka-js/$pkgname/archive/master.zip")
md5sums=('1b07a73cad17613ad8bf72893921722a')

build() {
	cd "$srcdir/$pkgname-master"
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	cd "$srcdir/$pkgname-master"
	make INSTALL_ROOT="$pkgdir/" install
}

Offline

#2 2016-01-07 14:22:10

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

Re: Is this correct for the video library, Alexandra?

The main issue is that you are pulling the source files from git HEAD, but using a fixed $pkgver.

Please read up on VCS PKGBUILDS....
https://wiki.archlinux.org/index.php/VC … guidelines


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

#3 2016-01-07 14:51:20

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

Thank you, slithery. I've tried to avoid (seemingly unsuccessfully) git as my noob brain couldn't grasp the intricacies of the pkgver thing!

Offline

#4 2016-01-07 15:22:07

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

Re: Is this correct for the video library, Alexandra?

If you want to create a fixed version package rather than a git package then you could just use https://github.com/jeka-js/alexandra/archive/1.4.0.zip as the source instead of downloading the current git HEAD.


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

#5 2016-01-07 15:28:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: Is this correct for the video library, Alexandra?

It doesn't need to "provide" itself, and it really shouldn't "conflict" with itself. There's also not much point in "conflict"ing with a -git package that doesn't exist.

License is wrong. The license specifies "or (at your option) any later version", making it GPL, not just GPL2.

Overall, looks pretty good.

Offline

#6 2016-01-07 15:30:48

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

Thanks again. What about this as git version:

# Maintainer: Acar Burak <acarbura at gmail dot com>

_pkgname=alexandra
pkgname=alexandra-git
pkgver=1.4.0
pkgrel=1
pkgdesc="Qt5 Video library with posters, fetchable, searchable tags, selectable player..."
arch=("x86_64")
url="https://github.com/jeka-js/alexandra"
license=("GPL2")
depends=("qt5-base" "desktop-file-utils" "hicolor-icon-theme")
optdepends=("libmediainfo: for technical info")
provides=("$_pkgname" "$pkgname" )
conflicts=("$_pkgname" "$pkgname")
install="$_pkgname.install"
source=("$_pkgname::git+https://github.com/jeka-js/$pkgname")
md5sums=('1b07a73cad17613ad8bf72893921722a')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}	

build() {
	cd "$srcdir/$_pkgname"
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	cd "$srcdir/$_pkgname"
	make INSTALL_ROOT="$pkgdir/" install
}

Offline

#7 2016-01-07 15:32:56

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

Scimmia wrote:

It doesn't need to "provide" itself, and it really shouldn't "conflict" with itself. There's also not much point in "conflict"ing with a -git package that doesn't exist.

License is wrong. The license specifies "or (at your option) any later version", making it GPL, not just GPL2.

Overall, looks pretty good.

Thank you. I've stolen those, that is, mis-stolen it seems. Will correct.

Offline

#8 2016-01-07 15:57:51

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

Latest (git version):

# Maintainer: Acar Burak <acarbura at gmail dot com>

_pkgname=alexandra
pkgname=alexandra-git
pkgver=1.4.0
pkgrel=1
pkgdesc="Qt5 Video library with posters, fetchable, searchable tags, selectable player..."
arch=("x86_64")
url="https://github.com/jeka-js/alexandra"
license=("GPL")
depends=("qt5-base" "desktop-file-utils" "hicolor-icon-theme")
optdepends=("libmediainfo: for technical info")
provides=("$_pkgname" )
conflicts=("$pkgname")
install="$_pkgname.install"
source=("$_pkgname::git+https://github.com/jeka-js/$pkgname")
md5sums=('1b07a73cad17613ad8bf72893921722a')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}	

build() {
	cd "$srcdir/$_pkgname"
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	cd "$srcdir/$_pkgname"
	make INSTALL_ROOT="$pkgdir/" install
}

Offline

#9 2016-01-07 16:08:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: Is this correct for the video library, Alexandra?

You still have it conflicting with itself.

There's no reason to use printf in that pkgver function.

A checksum on a VCS source doesn't make sense. Use 'SKIP'.

Last edited by Scimmia (2016-01-07 16:09:01)

Offline

#10 2016-01-07 16:18:34

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

You still have it conflicting with itself.

Damn, yes!

A checksum on a VCS source doesn't make sense. Use 'SKIP'.

Yes, forgot that.

There's no reason to use printf in that pkgver function.

Well, I don't understand that pkgver function anyway, have just copied it.

Such a good software with no alternative I guess and yet only an innocent noob to package it?!

Last edited by fluxboxer (2016-01-07 16:29:46)

Offline

#11 2016-01-07 16:51:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: Is this correct for the video library, Alexandra?

The pkgver function is run, and whatever it outputs is put into the pkgver variable. Just running the git describe command will do that. Adding the printf %s is similar to doing echo $(echo <something>)

Offline

#12 2016-01-07 17:26:57

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is this correct for the video library, Alexandra?

Right, thank you Bug Wrangler.

Offline

Board footer

Powered by FluxBB