diff options
author | Feakster | 2021-01-25 11:14:35 +0000 |
---|---|---|
committer | Feakster | 2021-01-25 11:14:35 +0000 |
commit | dbc2aa0b2e60f94f48fee7149bb74b9f57ef769a (patch) | |
tree | 4370bfa20e9bac31e514f1b56665a14af9c57337 /simplenote-electron-arm-bin.install | |
parent | 2832f6bfe89319e6086730ddc89889f3a881c266 (diff) | |
download | aur-dbc2aa0b2e60f94f48fee7149bb74b9f57ef769a.tar.gz |
Refactored the package
- Refactored how the application in installed, making more use of symlinks.
- Added 'zlib' to makedepends.
- Bump in pkgrel.
Diffstat (limited to 'simplenote-electron-arm-bin.install')
-rw-r--r-- | simplenote-electron-arm-bin.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/simplenote-electron-arm-bin.install b/simplenote-electron-arm-bin.install new file mode 100644 index 000000000000..020b7c7da089 --- /dev/null +++ b/simplenote-electron-arm-bin.install @@ -0,0 +1,20 @@ +### Vars ### +_pkgname=simplenote + +### Post Install ### +post_install() { + ## Symlink Files ## + ln -s \ + "$pkgdir"/opt/$_pkgname/${_pkgname}.desktop \ + "$pkgdir"/usr/share/applications/${_pkgname}.desktop + ln -s \ + "$pkgdir"/opt/$_pkgname/$_pkgname \ + "$pkgdir"/usr/bin/$_pkgname +} + +### Post Remove ### +post_remove() { + ## Remove Symlinks ## + rm "$pkgdir"/usr/share/applications/${_pkgname}.desktop + rm "$pkgdir"/usr/bin/$_pkgname +} |