summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordavedatum2019-11-01 18:29:34 +0000
committerdavedatum2019-11-01 18:29:34 +0000
commit7e03b641c5489753a4a86bd4655cc4a0e280aac0 (patch)
tree72c80808a18057b7bd677996db2c745a662348bc
parenteec6a71a1dd4f0ce3ab631f7c6f4a5e47feadc7a (diff)
downloadaur-7e03b641c5489753a4a86bd4655cc4a0e280aac0.tar.gz
cleaned up
-rw-r--r--PKGBUILD32
1 files changed, 16 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b5720285e91..ef056d50949 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,39 +10,39 @@ url="https://github.com/meowtec/Imagine"
license=("MIT")
depends=("electron2" "imagemagick")
makedepends=("git" "npm")
-provides=("$pkgname")
-conflicts=("$pkgname")
-install=$_pkgname.install
-source=("$_pkgname::git+$url.git#tag=v0.5.0"
- "$_pkgname.sh"
- "$_pkgname.desktop"
- "$_pkgname.install")
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+install=${_pkgname}.install
+source=("${_pkgname}::git+$url.git#tag=v0.5.0"
+ "${_pkgname}.sh"
+ "${_pkgname}.desktop"
+ "${_pkgname}.install")
md5sums=('SKIP'
'e7577f322638f548ea42e7e1c9cd77d8'
'7f80869e29fd5af22e4c303f9a10975f'
'671bee3aec8f7e0a0556ee8d336c604d')
pkgver() {
- cd "$_pkgname"
+ cd "${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$srcdir/$_pkgname"
+ cd "${srcdir}/${_pkgname}"
npm install && npm run pack
}
package() {
- install -Dm755 "$srcdir/$_pkgname/dist/linux-unpacked/resources/app.asar" "$pkgdir/opt/$_pkgname/app.asar"
- install -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
- install -Dm644 "$srcdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
+ install -Dm755 "${srcdir}/${_pkgname}/dist/linux-unpacked/resources/app.asar" "${pkgdir}/opt/${_pkgname}/app.asar"
+ install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -Dm644 "${srcdir}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
- install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
do
- install -dm755 "$pkgdir/usr/share/icons/hicolor/$_size/apps"
- convert "$srcdir/$_pkgname/build/icon.png" \
- -resize "$_size" "$pkgdir/usr/share/icons/hicolor/$_size/apps/$_pkgname.png"
+ install -dm755 "${pkgdir}/usr/share/icons/hicolor/$_size/apps"
+ convert "${srcdir}/${_pkgname}/build/icon.png" \
+ -resize "$_size" "${pkgdir}/usr/share/icons/hicolor/$_size/apps/${_pkgname}.png"
done
} \ No newline at end of file