You are not logged in.

#1 2016-10-14 17:44:30

erylflynn
Member
Registered: 2016-10-14
Posts: 11

Looking to add a package to AUR Need help

So I use Torguard VPN service and have no problem installing it myself but thought I could add it to AUR and maintain it as well making it easy for others.  There is no building needed, the action is simply copying files to opt and usr.  Package build that comes with the package is below.

# Maintainer: TorGuard Support <support@torguard.com>
pkgname=torguard
pkgver=0.3.54
pkgrel=1
pkgdesc="TorGuard VPN Software
 Stay private online with TorGuard's anonymous VPN software and connect to 37+ countries worldwide."
arch=('x86_64')
url="www.torguard.com"
depends=('net-tools')
license=(custom)
source=("torguard-v0.3.54-amd64-arch.tar")
md5sums=('05709c2973a5865f0785584934dd1ae1')

package() {
        cp -r "$srcdir"/*/* "$pkgdir"
        find "$pkgdir"/opt/torguard/ -type f -exec chmod 644 {} \;
        find "$pkgdir"/opt/torguard/ -name torguard -exec chmod 755 {} \;
        find "$pkgdir"/opt/torguard/ -name torguard-wrapper -exec chmod 755 {} \;
        find "$pkgdir"/opt/torguard/ -name ss-local -exec chmod 755 {} \;
        find "$pkgdir"/opt/torguard/ -name openvpn  -exec chmod 755 {} \;

        install -d "$pkgdir"/usr/bin/
        ln -s /opt/torguard/bin/torguard-wrapper "$pkgdir"/usr/bin/torguard
}

I assume I need to create an install file.  But I do not see how to use the package build with an installer.  Do I just use this as a guide or am I missing something?

Offline

#2 2016-10-14 17:55:10

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Looking to add a package to AUR Need help

Offline

#3 2016-10-14 18:51:19

erylflynn
Member
Registered: 2016-10-14
Posts: 11

Re: Looking to add a package to AUR Need help

Yes, my first step I need pointed in the right direction is getting the build ready.  I have a github account and have started the project found at https://github.com/erylflynn/torguard.

So what do I need to do to make this a valid build?  I have looked at a few others and got this far, but I am not sure what I need and then what to do to test locally.  Guides and documentation are not making sense so far, I suspect they assume you know more than I do about the process.

Offline

#4 2016-10-15 13:23:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Looking to add a package to AUR Need help

There are several things wrong with your PKGBUILD, Check https://wiki.archlinux.org/index.php/Ar … _standards and the related articles .

Some things to get you started :

What naming convention is used for packages that don't compile from source ?
how to handle license :custom
Are binary files allowed in source array ?

How do .desktop files end up in usr/share/applications ?

the pkgdesc should not have the program name in it.

Last edited by Lone_Wolf (2016-10-15 13:24:35)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-10-15 17:45:38

erylflynn
Member
Registered: 2016-10-14
Posts: 11

Re: Looking to add a package to AUR Need help

For the pkgdesc, I am unsure how to word that.  The client is for connecting to the TorGuard VPN service.  So if I remove the TorGuard VPN Software, is it ok to still say something like "For use connecting to the TorGuard VPN Service" ?  License I am asking what license the code was built under, they require no right to use license. 

I am reading the link on the rest and trying to rebuild the PKGBUILD correctly, then will want to get makepkg to work correctly which right now it does not.  On a Mate desktop it errors out about metadata.

Offline

#6 2016-10-16 21:12:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Looking to add a package to AUR Need help

For the package description I'd say something like : "Client software to connect to TorGuard VPN service" should be ok .

I have found torguard downloadpage and indeed don't see any license mentioned.
That doesn't have to block putting something in the aur,but is weird.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2016-10-16 21:27:40

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Looking to add a package to AUR Need help

About the licence, maybe you should contact the developers and ask.

Offline

#8 2016-10-17 01:19:18

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: Looking to add a package to AUR Need help

One piece of advice I have is to remove the find commands you use to chmod single files that you know the names of (for example torguard, torguard-wrapper, openvpn, etc). This will not only make the PKGBUILD easier to read, but will also make it slightly faster.

Offline

#9 2016-11-27 15:36:09

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Looking to add a package to AUR Need help

They have an i386 version the package build could also handle.

Offline

Board footer

Powered by FluxBB