[aur-general] RFC: PKGBUILD for nixnote2-git [Finalising]

Tom Hale tom at hale.ee
Mon Oct 8 02:45:01 UTC 2018


Thanks all for the great reviews.

Thank you in particular to those who said WHY changes were suggested. I 
now feel empowered to go on to package rambox-os.

I believe I have incorporated all the feedback I received in the below.

If I missed something it is by mistake - and I ask for your generosity 
in pointing it out once again.

=========================================================

# Maintainer: Tom Hale <tom[noodle]hale[point]ee>
# Contributor: twa022 <twa022 at gmail dot com>

_pkgname=nixnote2
pkgname=${_pkgname}-git
pkgver=2.1.0.beta3.r95.g8f235769
pkgrel=2
pkgdesc='Evernote clone (formerly Nevernote) - git checkout'
url="https://github.com/robert7/$_pkgname"
arch=(x86_64)
license=(GPL3)
depends=(java-runtime hicolor-icon-theme poppler-qt5 tidy qt5-webkit)
makedepends=(git)
provides=("nixnote=${pkgver%.r*}" "$_pkgname=${pkgver%.r*}")
replaces=(nevernote nixnote nixnote-beta)
source=("git+${url}.git")
sha256sums=('SKIP')

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

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

package() {
   cd "$_pkgname"
   make INSTALL_ROOT="$pkgdir" install
   install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}/" 
docs/{shortcuts-howto,CHANGELOG}.md
   # Rename shortcuts.txt to align with shortcuts-howto.md:
   install -m644 shortcuts.txt 
"${pkgdir}/usr/share/doc/${_pkgname}/shortcuts_sample.txt"
}

-- 
Regards,
Tom Hale


More information about the aur-general mailing list