summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-09-29 10:18:26 +1300
committercaltlgin2020-09-29 10:18:26 +1300
commit1b87d3623330117bb782cedd41625dc74c4643a9 (patch)
treea44d87915e36019e7629207abeb90eb9207925cd
downloadaur-image-optimizer-bin.tar.gz
Add to AUR
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD27
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..52ca6dad640
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = image-optimizer-bin
+ pkgdesc = Simple lossless image compression
+ pkgver = 0.1.17
+ pkgrel = 1
+ url = https://github.com/gijsgoudzwaard/image-optimizer
+ arch = x86_64
+ license = MIT
+ depends = granite
+ depends = jpegoptim
+ depends = optipng
+ provides = image-optimizer
+ source = http://packages.elementary.io/appcenter/pool/main/c/com.github.gijsgoudzwaard.image-optimizer/com.github.gijsgoudzwaard.image-optimizer0.1.17-64559e.deb
+ source = image-optimizer-bin-0.1.17-LICENSE::https://github.com/gijsgoudzwaard/image-optimizer/raw/0.1.17/LICENSE
+ sha256sums = c2eefbaaf5f9392e6d01e240da27b21a4533165d26cf47a66399a5f3c6e84115
+ sha256sums = 6477678e949d04b38104a51115dc9f2978cb34c7c98aa56865babf8b50277c21
+
+pkgname = image-optimizer-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cd1d64ed369
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+
+_binary_name='com.github.gijsgoudzwaard.image-optimizer'
+_pkgname="${_binary_name##*.}"
+pkgname="${_pkgname}-bin"
+pkgver=0.1.17
+pkgrel=1
+_pkg_hash='64559e' # <-- NB: update on new version
+pkgdesc='Simple lossless image compression'
+arch=('x86_64')
+url='https://github.com/gijsgoudzwaard/image-optimizer'
+_pool_url='http://packages.elementary.io/appcenter/pool/main'
+license=('MIT')
+depends=('granite' 'jpegoptim' 'optipng')
+provides=("${_pkgname}")
+source=("${_pool_url}/${_binary_name::1}/${_binary_name}/${_binary_name}${pkgver}-${_pkg_hash}.deb"
+ "${pkgname}-${pkgver}-LICENSE::${url}/raw/${pkgver}/LICENSE")
+sha256sums=('c2eefbaaf5f9392e6d01e240da27b21a4533165d26cf47a66399a5f3c6e84115'
+ '6477678e949d04b38104a51115dc9f2978cb34c7c98aa56865babf8b50277c21')
+
+package() {
+ tar -xvf data.tar.xz -C "${pkgdir}"
+ rm -rf "${pkgdir}/usr/share/doc"
+ install -Dm644 "${pkgname}-${pkgver}-LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et: