blob: 068a75e811dd6d9888cb7c180e24fb81bdb2ab2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Pedro Simões <pedrofchsimoes at protonmail dot com>
# Use the following variable to change package architecture.
# Maintainer: Pedro Simões <pedrofchsimoes at protonmail dot com>
# Use the following variable to change package architecture.
# To use OS architecture please uncomment it
_arch="x64"
# possible values: "x86", "x64"
case "${_arch-"${CARCH}"}" in
i686|x86)
_archstr='';;
x86_64|x64)
_archstr='.x64';;
esac
pkgbase=notepadpp
pkgname=notepad++
_pkgname=notepad-plus-plus
pkgver=8.7.4
pkgrel=1
pkgdesc="A free source code editor for Windows"
url="https://${_pkgname}.org/"
license=('GPL2')
arch=('i686' 'x86_64')
depends=('wine' 'sh' 'fuse-overlayfs')
makedepends=('unzip')
provides=(notepadpp)
replaces=('notepadpp-win32' 'notepadpp-win64' 'notepadpp')
source=(notepad++
notepad++.desktop
notepad++.png
"https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/npp.${pkgver}.portable.zip"{,.sig}
"https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/npp.${pkgver}.portable.x64.zip"{,.sig})
sha256sums=('643713113d26d32b2e6d861e9cd6db8153a3359f3784dbd1710f12e89468654a'
'98693e0f57a9fab55dd31dfaf9b3a13234f14e1b193b56ac52eff33c987d4354'
'04c8ad254a41350078bba4d56ad54f7b4c0df125029aee021ea0ac632971ebad'
'c9c4e348c396b224fc30302079f93d37c917a693e191a0d454f9378dd9719da2'
'SKIP'
'cb9d0f6e87cacfc34bca1b43d0f359337e3e80cc84fa996712f2236c2e701fbb'
'SKIP')
noextract=("npp.${pkgver}.portable.zip"
"npp.${pkgver}.portable.x64.zip")
validpgpkeys=('14BCE4362749B2B51F8C71226C429F1D8D84F46E')
options=('!strip')
package() {
install -d -m755 "${pkgdir}/usr/share/${pkgname}"
unzip "${srcdir}/npp.${pkgver}.portable${_archstr}.zip" -d "${pkgdir}/usr/share/${pkgname}"
rm -rf "${pkgdir}/usr/share/${pkgname}/updater" \
"${pkgdir}/usr/share/${pkgname}/license.txt" \
find "${pkgdir}/usr/share/${pkgname}" -type d -exec chmod 755 "{}" \;
find "${pkgdir}/usr/share/${pkgname}" -type f -exec chmod 644 "{}" \;
install -D -m755 "${srcdir}/notepad++" "${pkgdir}/usr/bin/notepad++"
install -D -m644 "${srcdir}/notepad++.png" "${pkgdir}/usr/share/pixmaps/notepad++.png"
install -D -m644 "${srcdir}/notepad++.desktop" "${pkgdir}/usr/share/applications/notepad++.desktop"
}
|