Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
xiarenfan committed Apr 1, 2023
1 parent 212ade9 commit 723ee9b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions srcpkg/clash-geoip/template
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# Template file for 'clash-geoip'
pkgname=clash-geoip
_pkgname=maxmind-geoip
version=20230212
revision=1
short_desc="GeoLite2 data created by MaxMind"
maintainer="xiarenfan <xiarenfan1998@onionmail.com>"
license="custom:Hugware"
makedepends="wget"
homepage="https://github.com/Dreamacro/maxmind-geoip"
distfiles="${homepage}/archive/refs/tags/${version}.tar.gz
${homepage}/releases/download/${version}/Country.mmdb"
checksum="0583144b29afde4012690dc95d928cc81d355e2a18eed5d1eda9e21e10bf8b30
4e799aeada444f856b9b91bc2a62e9b159e90f62482adb39ea4650b0121b459f"
skip_extraction=Country.mmdb
restricted=yes

do_fetch() {
wget ${homepage}/releases/download/${version}/Country.mmdb
}

do_install() {
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/Country.mmdb" 0644 etc/clash/Country.mmdb
vinstall "${XBPS_BUILDDIR}/Country.mmdb" 0644 etc/clash/Country.mmdb
}

0 comments on commit 723ee9b

Please sign in to comment.