You are not logged in.

#1 2015-11-05 01:38:41

MichaelTiebesl
Member
From: Makati City
Registered: 2015-10-13
Posts: 6
Website

[Solved] Changing package name in PKGBUILD

Hey hello... smile

I'm working to make an AUR for a icon theme.
In PKGBUILD i don't get it to change the name.
When I installed it now in usr/share/icons it show as masalla-icon-theme.
I prefer to have it installed as Masalla in usr/share/icons

What do i have to change in the PKGBUILD to change this?

Thanks...

pkgname=masalla-icon-theme-git
_pkgname=masalla-icon-theme
pkgver=r.
pkgrel=1
pkgdesc="Latest flat design theme by Hayder Majid"
arch=('any')
url="https://github.com/hayderctee/masalla-icon-theme"
license=('GPL3')
depends=()
makedepends=('git')
optdepends=()
provides=('masalla-icon-theme-git')
conflicts=('masalla-icon-theme-git')
source=('git+https://github.com/hayderctee/masalla-icon-theme.git')
md5sums=('SKIP')

pkgver(){
    cd ${_gitname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    install -d ${pkgdir}/usr/share/icons
    cp -r ${srcdir}/${_gitname}/${_pkgname} ${pkgdir}/usr/share/icons/${_pkgname}
    find ${pkgdir}/usr -type f -exec chmod 644 {} \;
    find ${pkgdir}/usr -type d -exec chmod 755 {} \;
} 

Last edited by MichaelTiebesl (2015-11-05 02:02:25)


| Gitarist | Linux gebruiker | Sportliefhebber | Optimist | Dromer | Echtgenoot | Vader |

Offline

#2 2015-11-05 01:45:52

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] Changing package name in PKGBUILD

just copy the files to /usr/share/icons/Masalla, instead of /usr/share/icons/${_pkgname}

Offline

#3 2015-11-05 01:46:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Changing package name in PKGBUILD

If you can't read the PKGBUILD script, your basic Linux commands need some work...

cp -r ${srcdir}/${_gitname}/${_pkgname} ${pkgdir}/usr/share/icons/${_pkgname}

Offline

#4 2015-11-05 02:01:47

MichaelTiebesl
Member
From: Makati City
Registered: 2015-10-13
Posts: 6
Website

Re: [Solved] Changing package name in PKGBUILD

Thanks a lot  both to point me in the right direction... smile

Last edited by MichaelTiebesl (2015-11-05 02:02:46)


| Gitarist | Linux gebruiker | Sportliefhebber | Optimist | Dromer | Echtgenoot | Vader |

Offline

Board footer

Powered by FluxBB