Skip to content

Commit

Permalink
Update poedit-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Nov 10, 2022
1 parent a09603b commit 7769002
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
47 changes: 47 additions & 0 deletions archlinuxcn/poedit-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Maintainer: taotieren <admin@taotieren.com>

pkgname=poedit-git
pkgver=3.2.1.oss.r1.g992181a6f
pkgrel=1
epoch=
pkgdesc="Poedit: cross-platform translation editor"
arch=('x86_64')
url="https://github.com/vslavik/poedit"
license=('MIT')
groups=()
depends=(gtkspell3 lucene++ wxwidgets-gtk3 webkit2gtk)
makedepends=(boost)
checkdepends=()
optdepends=('cld2: Compact Language Detector 2')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+${url}.git")
noextract=()
sha256sums=('SKIP')
#validpgpkeys=()

pkgver() {
cd "${srcdir}/${pkgname%-git}"

git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgname%-git}"

./bootstrap
./configure --prefix=/usr --libexecdir=/usr/lib/poedit
make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t'
}

package() {
cd "${srcdir}/${pkgname%-git}"

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 7769002

Please sign in to comment.