diff --git a/archlinuxcn/poedit-git/PKGBUILD b/archlinuxcn/poedit-git/PKGBUILD new file mode 100644 index 000000000000..66fd92950a91 --- /dev/null +++ b/archlinuxcn/poedit-git/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: taotieren + +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 +} diff --git a/archlinuxcn/poedit-git/lilac.yaml b/archlinuxcn/poedit-git/lilac.yaml new file mode 100644 index 000000000000..ce1039b98d35 --- /dev/null +++ b/archlinuxcn/poedit-git/lilac.yaml @@ -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