Created
March 17, 2017 18:34
-
-
Save jgmdev/939e48f6a030837714fed2afbebf9a33 to your computer and use it in GitHub Desktop.
evolus-pencil-bin archlinux PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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