blob: 4c569a16dc09b1102d9a189a9d8c2d22cba6c4ff (
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
|
# 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
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'
'958e1d5711c7f54346bfef169991bdac69f4217a07cbf16df04a3b01eb72699e'
'SKIP'
'1955191d7fe07d2a1cb10ceb6f6c2c55b6c2fef07623dcef72efbd5417c334fa'
'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"
}
|