diff options
author | Brandon Clifford | 2017-05-22 19:29:52 -0600 |
---|---|---|
committer | Brandon Clifford | 2017-05-24 10:04:47 -0600 |
commit | a457c700ffa84530eb8742fd13d4aea213d3a65d (patch) | |
tree | 3580ac1747d67a7055b0c163ac8f812f652c14c2 /PKGBUILD | |
download | aur-a457c700ffa84530eb8742fd13d4aea213d3a65d.tar.gz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79518d555fea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Brandon Clifford <brandon099 at gmail dot com> + +_pkgname=MooltiApp +pkgname=mooltiapp +pkgver=2.0.78 +pkgrel=1 +pkgdesc="Mooltiapp Desktop" +arch=('x86_64') +url="https://www.themooltipass.com/setup" +license=('custom') +depends=() +makedepends=('desktop-file-utils') +source=("https://github.com/limpkin/mooltiapp/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb") +sha256sums=('bcdb4a86d98a873691d2909c73f7718e9b64ebb65732df60013e78a63140880a') + +package() { + bsdtar -O -xf "${_pkgname}_${pkgver}_amd64.deb" data.tar.xz | bsdtar -C "${pkgdir}" -xJf - + + rm -f control.tar.gz data.tar.xz + + install -dm0755 "${pkgdir}/opt/${_pkgname}" + find -- -type f -exec install -Dm0644 '{}' "${pkgdir}/opt/${_pkgname}/{}" \; + + find . -type d -exec install -d {,${pkgdir}/usr/share/}{} \; + find . -type f -exec install -Dm0644 {,${pkgdir}/usr/share/}{} \; + + install -dm0755 "${pkgdir}/usr/bin" + ln -s "${pkgdir}/opt/${_pkgname}/mooltiapp" "${pkgdir}/usr/bin/mooltiapp" + +} |