diff options
author | J5lx | 2015-06-09 16:29:10 +0200 |
---|---|---|
committer | J5lx | 2015-06-09 16:29:10 +0200 |
commit | fb282d4226bae3b351fb2da3805eaba25b6e9637 (patch) | |
tree | b4f0ad3d223f70c6165cebddb4445d5b235c1a30 | |
download | aur-fb282d4226bae3b351fb2da3805eaba25b6e9637.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | 010editor.desktop | 8 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f1a784ed10cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = 010editor + pkgdesc = Professional text and hex editing with Binary Templates technology + pkgver = 6.0.2 + pkgrel = 1 + url = http://www.sweetscape.com/010editor/ + arch = i686 + arch = x86_64 + license = custom:proprietary + depends = qt4 + source = 010editor.desktop + source = http://www.sweetscape.com/download/010EditorLinux32Installer.tar.gz + md5sums = 4cff010c132fdd24399e5dd57834b93b + md5sums = aa3b511927b7bd81e0d285fec497a274 + +pkgname = 010editor + diff --git a/010editor.desktop b/010editor.desktop new file mode 100644 index 000000000000..f57e5fa8feb2 --- /dev/null +++ b/010editor.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=010 Editor +Comment=Professional text and hex editing with Binary Templates technology +Icon=010editor +Exec=010editor +Terminal=false +Type=Application +Categories=Development; diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..293d0f51d95b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> +pkgname=010editor +pkgver=6.0.2 +pkgrel=1 +pkgdesc="Professional text and hex editing with Binary Templates technology" +arch=('i686' 'x86_64') +url="http://www.sweetscape.com/010editor/" +license=('custom:proprietary') +depends=('qt4') +source=("010editor.desktop") +md5sums=('4cff010c132fdd24399e5dd57834b93b') + +if [[ ${CARCH} = x86_64 ]]; then + source+=("http://www.sweetscape.com/download/010EditorLinux64Installer.tar.gz") + md5sums+=('ac3cea47802cb21033cca185c7164236') + _installer="010EditorLinux64Installer" +else + source+=("http://www.sweetscape.com/download/010EditorLinux32Installer.tar.gz") + md5sums+=('aa3b511927b7bd81e0d285fec497a274') + _installer="010EditorLinux32Installer" +fi + +build() { + cd "${srcdir}" + + [[ -d prefix ]] && rm -rf prefix + mkdir prefix + + msg2 "Running the installer" + ./${_installer} --mode silent --prefix ${PWD}/prefix +} + +package() { + cd "${srcdir}/prefix" + + install -dm755 "${pkgdir}/opt/${pkgname}/Data/" + install -dm755 "${pkgdir}/opt/${pkgname}/ext/" + install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/" + install -dm755 "${pkgdir}/usr/bin" + + install -Dm644 "010Editor.qch" \ + "010Editor.qhc" \ + "010_icon_128x128.png" \ + "010editor.news" \ + "${pkgdir}/opt/${pkgname}/" + install -Dm644 Data/* "${pkgdir}/opt/${pkgname}/Data/" + install -Dm644 ext/* "${pkgdir}/opt/${pkgname}/ext/" + install -Dm755 "010editor" "${pkgdir}/opt/${pkgname}/010editor" + install -Dm644 "Changes.txt" \ + "Readme.txt" \ + "${pkgdir}/usr/share/doc/${pkgname}/" + install -Dm644 "license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + ln -s "/usr/bin/assistant-qt4" "${pkgdir}/opt/${pkgname}/assistant" + + install -Dm644 "010_icon_128x128.png" "${pkgdir}/usr/share/pixmaps/010editor.png" + install -Dm644 "${srcdir}/010editor.desktop" "${pkgdir}/usr/share/applications/010editor.desktop" + ln -s "/opt/${pkgname}/010editor" "${pkgdir}/usr/bin/010editor" +} |