You are not logged in.

#1 2017-12-02 16:22:19

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

openpyn-nordvpn

I created a PKGBUILD for openpyn-nordvpn, please help me to test it before loading on aur.

# Maintainer: Ubermensch <francescomarra@protonmail.com>>

pkgname=openpyn-nordvpn-git
_pkgname=openvpn-nordvpn
pkgver=1
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')
package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

Bye

Offline

#2 2017-12-02 16:26:44

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

Re: openpyn-nordvpn

arch=('i686' 'x86_64' 'armv6h' 'armv7h')

...but no build function? One or the other are wrong.

You're also missing a pkgver function.

_pkgname is useless, and probably wrong anyway.

Last edited by Scimmia (2017-12-02 16:29:19)

Offline

#3 2017-12-02 16:44:03

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

Ok

 
# Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-git
pkgver=1
pkgrel=1.7.3
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')
package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

The build is not necessary.... For the architetture why is wrong?

Thanks

Offline

#4 2017-12-02 16:48:16

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

Re: openpyn-nordvpn

You're still missng a pkgver function.
https://wiki.archlinux.org/index.php/VC … guidelines

Also pkgrel should be an integer.
https://wiki.archlinux.org/index.php/PKGBUILD#pkgrel

Last edited by Slithery (2017-12-02 16:56:14)


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 2017-12-02 16:57:01

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

# Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-git
pkgver=1.7.3
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')


pkgver() {
  cd "$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}
makepkg           
==> Creazione del pacchetto: openpyn-nordvpn-git 1.7.3-1 (sab  2 dic 2017, 17.53.07, CET)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> Aggiornamento del repository openpyn-nordvpn git in corso...
Fetching origin
==> Validazione di source file con md5sums...
    openpyn-nordvpn ... Ignorato
==> Estrazione dei sorgenti in corso...
  -> Creazione di una copia di lavoro del repository openpyn-nordvpn git in corso...
Ripristina il branch 'makepkg'
==> Avvio di pkgver() in corso...
/home/ubermensch/Prova/PKGBUILD: riga 19: cd: openpyn-nordvpn-git: File o directory non esistente
==> ERRORE: pkgver non può essere vuoto.
==> ERRORE: pkgver() ha generato una versione non valida: 

Offline

#6 2017-12-02 16:59:59

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

Re: openpyn-nordvpn


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

#7 2017-12-02 17:04:12

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

Re: openpyn-nordvpn

^-Ubermensch-^ wrote:

The build is not necessary.... For the architetture why is wrong?

If you're building anything, you need a build function. If you're not, there's nothing architecture specific in the package, so it shouldn't say that there is.
https://wiki.archlinux.org/index.php/PKGBUILD#arch

Offline

#8 2017-12-02 17:06:57

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

slithery wrote:

Sorry

 makepkg
==> Creation of the package: openpyn-nordvpn-git 1.7.3-1 (Sat 2 Dec 2017, 17.53.07, CET)
==> Checking dependencies during startup ...
==> Checking dependencies during compilation ...
==> Download sources ...
-> Update of openpyn-nordvpn git repository in progress ...
Recovery of origin
==> Validation of source files with md5sums ...
openpyn-nordvpn ... Ignored
==> Extracting sources in progress ...
-> Creating a working copy of the openpyn-nordvpn git repository ...
Restore the 'makepkg' branch
==> Starting pkgver () in progress ...
/ home / ubermensch / Trial / PKGBUILD: line 19: cd: openpyn-nordvpn-git: File or directory does not exist
==> ERROR: pkgver can not be empty.
==> ERROR: pkgver () has generated an invalid version:

Offline

#9 2017-12-02 17:10:08

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

Scimmia wrote:
^-Ubermensch-^ wrote:

The build is not necessary.... For the architetture why is wrong?

If you're building anything, you need a build function. If you're not, there's nothing architecture specific in the package, so it shouldn't say that there is.
https://wiki.archlinux.org/index.php/PKGBUILD#arch

Thanks

 # Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-git
pkgver=1.7.3
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('x86_64')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')


pkgver() {
  cd "$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

Offline

#10 2017-12-02 17:11:28

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

Re: openpyn-nordvpn

/ home / ubermensch / Trial / PKGBUILD: line 19: cd: openpyn-nordvpn-git: File or directory does not exist

Error seems pretty self-explanatory.

Offline

#11 2017-12-02 17:12:22

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

Re: openpyn-nordvpn

^-Ubermensch-^ wrote:
Scimmia wrote:
^-Ubermensch-^ wrote:

The build is not necessary.... For the architetture why is wrong?

If you're building anything, you need a build function. If you're not, there's nothing architecture specific in the package, so it shouldn't say that there is.
https://wiki.archlinux.org/index.php/PKGBUILD#arch

Thanks

You missed the whole point. It's still wrong.

Offline

#12 2017-12-02 17:21:55

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

Scimmia wrote:
/ home / ubermensch / Trial / PKGBUILD: line 19: cd: openpyn-nordvpn-git: File or directory does not exist

Error seems pretty self-explanatory.

Now works without errors. The architetture i supposed is indipendent so i put "any"... sad

# Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-git
pkgver=1.7.3
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('any')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')


pkgver() {
  cd openpyn-nordvpn
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

Offline

#13 2017-12-05 17:09:04

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: openpyn-nordvpn

Boys unfortunately I can not load the two packages on AUR because i'm dumnie with git someone could do ?

openpyn-nordvpn-git

# Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-svn
pkgver=1.7.3
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('x86_64')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git')
md5sums=('SKIP')


pkgver() {
  cd openpyn-nordvpn
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

openpyn-nordvpn-svn

# Maintainer: Ubermensch <francescomarra@protonmail.com>

pkgname=openpyn-nordvpn-svn
pkgver=2.0.1
pkgrel=1
pkgdesc="Easily connect to and switch between, OpenVPN servers hosted by NordVPN. (+patch leakes)"
arch=('x86_64')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL')
depends=('openvpn' 'python-gobject' 'unzip' 'wget')
makedepends=('python' 'git')
provides=('openvpn-nordvpn')
conflicts=('openvpn-nordvpn')
source=('openpyn-nordvpn::git+https://github.com/jotyGill/openpyn-nordvpn.git#branch=test')
md5sums=('SKIP')


pkgver() {
  cd openpyn-nordvpn
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/openpyn-nordvpn"
  python3 setup.py install --root="${pkgdir}"
}

Last edited by ^-Ubermensch-^ (2017-12-05 17:10:06)

Offline

#14 2017-12-05 17:46:21

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

Re: openpyn-nordvpn

If you're not going to maintain them, don't upload them.

Why the hell would you call it -svn then clone from git?

Offline

Board footer

Powered by FluxBB