You are not logged in.

#1 2014-06-21 09:48:01

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

[SOLVED] MAKEPKG from git - md5sums?

I'm trying to make my first AUR package.

So far I have somethign that seems almost correct, except I am missing the md5sums field.

pkgname=exit-prompt
pkgver=0.1
pkgrel=1
pkgdesc="Exit dialog using systemctl, designed for OpenBox. Based on cb-exit from CrunchBang."
arch=('any')
url='https://github.com/MightyPork/exit-prompt'
license=('MIT')

depends=('python2' 'pygtk')
makedepends=(git)
optdepends=('systemd: power management'
            'openbox: logout function')

source=('git://github.com/MightyPork/exit-prompt.git')
provides=('exit-prompt')
md5sums=()

pkgver() {
    cd "$srcdir/exit-prompt"
    git describe --always | sed 's|-|.|g'
}

package() {
  install -Dm 755 "$srcdir/exit-prompt" "$pkgdir/usr/bin/exit-prompt"
}

Obviously since it comes from a git repository, I don't know what will be in the repository, hence it makes no sense at all to provide a md5 checksum. However, the build crashes with "ERROR: Integrity checks are missing.".

How to do this right?

Last edited by MightyPork (2014-06-21 10:44:50)


If it ain't broke, pacman -Syyu and it will be

Offline

#2 2014-06-21 09:56:07

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] MAKEPKG from git - md5sums?

md5sums=('SKIP')

Offline

#3 2014-06-21 10:00:01

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: [SOLVED] MAKEPKG from git - md5sums?

Morn wrote:

md5sums=('SKIP')

Okay, that works. But I've seen some "-git" packages have actual checksums in their PKGBUILD. Does that mean they have to edit the PKGBUILD each time the git repository changes?

Last edited by MightyPork (2014-06-21 10:00:28)


If it ain't broke, pacman -Syyu and it will be

Offline

#4 2014-06-21 10:37:53

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] MAKEPKG from git - md5sums?

Can you share those packages with us?

Offline

#5 2014-06-21 10:44:29

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: [SOLVED] MAKEPKG from git - md5sums?

Oh, my bad, it actually skips the git one, but has checksums for the others.

source=(git://git.gnome.org/gtk+
        settings.ini
        scroller.patch
        switch.patch)
sha256sums=('SKIP'
            'c214d3dcdcadda3d642112287524ab3e526ad592b70895c9f3e3733c23701621'
            'e93a3c06974d9ef82a6f77dc3da8c2c1d143e941de12e3a757a5746ac45dfc9e'
            '84b4e74b1d98bef69b9feb369aabed585a7dde99d05178c30e8e534f66d0d089')

Neverming, thanks for help. Closing.


If it ain't broke, pacman -Syyu and it will be

Offline

Board footer

Powered by FluxBB