Skip to content

Commit

Permalink
Update poedit-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed May 8, 2023
1 parent a09603b commit 674beab
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
65 changes: 65 additions & 0 deletions archlinuxcn/poedit-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Maintainer: taotieren <[email protected]>

pkgname=poedit-git
pkgver=3.2.2.oss.r80.g39a0c82aa
pkgrel=1
epoch=
pkgdesc="Translations editor for Mac, Windows and Unix"
arch=('x86_64')
url="https://github.com/vslavik/poedit"
license=('MIT')
groups=()
depends=(aspell
expat
gettext
gtkspell3
hunspell
nlohmann-json
lucene++
pugixml
wxwidgets-gtk3
webkit2gtk)
makedepends=(automake
ccache
boost
git
icu
libjpeg-turbo
libnotify
libsecret
zlib)
checkdepends=()
optdepends=()
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+${url}.git")
noextract=()
sha256sums=('SKIP')
#validpgpkeys=()

pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgname}"

./bootstrap
./configure --prefix=/usr \
--libexecdir=/usr/lib/poedit

make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t'
}

package() {
cd "${srcdir}/${pkgname}"

make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
14 changes: 14 additions & 0 deletions archlinuxcn/poedit-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: vslavik/poedit

0 comments on commit 674beab

Please sign in to comment.