Skip to content

Commit

Permalink
update lilac.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Jan 28, 2025
1 parent f3f16d0 commit 30d632c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
36 changes: 22 additions & 14 deletions aur-repo/manhuagui-downloader/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,51 @@ provides=(${pkgname})
conflicts=(${pkgname})
# replaces=(${pkgname})
depends=(
cairo
gcc-libs
gdk-pixbuf2
glib2
glibc
gtk3
hicolor-icon-theme
webkit2gtk
libsoup3
webkit2gtk-4.1
)
makedepends=(
cargo
cargo-tauri
pnpm
go
wails
)
backup=()
options=(!debug !strip !lto)
#install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0a238180519ada73f07d3826d85ae81325513cb080891fc03143157c94232168')

prepare() {
cd "${srcdir}/${pkgname}-${pkgver}/src-tauri"
cargo fetch --target "$CARCH-unknown-linux-gnu"
}

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

export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,direct

wails build
pnpm install
cd src-tauri
cargo build --release
# pnpm tauri build
}

# check() {
# cd "${srcdir}/${pkgname}-${pkgver}/"
# cargo test --release --all-features
# }

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

install -Dvm755 build/bin/${pkgname} -t ${pkgdir}/usr/bin
install -Dvm644 build/appicon.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png
install -Dvm755 src-tauri/target/release/${pkgname} -t ${pkgdir}/usr/bin
install -Dvm644 src-tauri/icons/icon.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png
install -Dvm644 /dev/stdin ${pkgdir}/usr/share/applications/${pkgname}.desktop <<EOF
[Desktop Entry]
Categories=
Expand Down
4 changes: 2 additions & 2 deletions aur-repo/manhuagui-downloader/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pre_build_script: |
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
repo_depends:
- wails
# repo_depends:
# -
update_on:
- source: github
github: lanyeeee/manhuagui-downloader
Expand Down

0 comments on commit 30d632c

Please sign in to comment.