Skip to content

Instantly share code, notes, and snippets.

@jgmdev jgmdev/PKGBUILD
Created Mar 17, 2017

Embed
What would you like to do?
evolus-pencil-bin archlinux PKGBUILD
# Maintainer: Leonidas Arvanitis <l.arvanitis@gmail.com>
_binname=Pencil
_pkgname_base=pencil
_pkgname=evolus-pencil
_version=3.0.0
_release=rc.2
_zipname="${_binname}_${_version}-${_release}_amd64.deb"
pkgname=${_pkgname}-bin
pkgver=${_version}_${_release}
pkgrel=1
pkgdesc="An open-source GUI prototyping tool - Evolus release"
arch=('x86_64')
url="http://pencil.evolus.vn/Next.html"
license=('GPL2')
depends=()
makedepends=('binutils' 'tar')
provides=($_pkgname)
conflicts=($_pkgname $_pkgname_base)
source=("https://github.com/evolus/$_pkgname_base/releases/download/v${_version}-$_release/$_zipname"
"$_pkgname.desktop")
sha1sums=('c988cfebc546e996d63925e44bdb2ddf122e35c8'
'934e9a01e4781d150d74959d3d3bd1081bebad82')
package() {
# Extract data
tar xJf "${srcdir}/data.tar.xz" -C "${pkgdir}/"
# Package files
mv "${pkgdir}/opt/$_binname" "${pkgdir}/usr/share/$_pkgname"
# Binary file
install -d "${pkgdir}/usr/bin/"
ln -s "../share/${_pkgname}/${_pkgname_base}" "${pkgdir}/usr/bin/${_pkgname_base}"
# Desktop file
cp -f "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname_base}.desktop"
# Cleanup
rm -rf "${pkgdir}/opt"
rm -rf "${pkgdir}/usr/share/doc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.