typescript new package
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import mesontools
|
||||
from pisi.actionsapi import get
|
||||
import os
|
||||
|
||||
pkgname = get.srcNAME()
|
||||
work_dir = get.workDIR()
|
||||
src_name = get.srcNAME()
|
||||
|
||||
def setup():
|
||||
shelltools.system("/usr/bin/npm ci")
|
||||
# mesontools.configure()
|
||||
|
||||
def build():
|
||||
shelltools.system("/usr/bin/npx hereby LKG")
|
||||
# mesontools.build()
|
||||
|
||||
def install():
|
||||
mod_dir = "/usr/lib/node_modules/%s" % pkgname
|
||||
|
||||
# Çalışma dizinini ayarla
|
||||
# os.chdir(os.path.join(work_dir, src_name))
|
||||
|
||||
# Dizin yapısını oluştur
|
||||
pisitools.dodir("/usr/bin")
|
||||
pisitools.dodir(mod_dir)
|
||||
|
||||
# Dosyaları kopyala
|
||||
for item in ["bin", "lib", "package.json"]:
|
||||
if os.path.exists(item):
|
||||
if os.path.isdir(item):
|
||||
pisitools.insinto("%s/%s" % (mod_dir, item), "%s/*" % item)
|
||||
else:
|
||||
pisitools.insinto(mod_dir, item)
|
||||
|
||||
# Sembolik linkler
|
||||
pisitools.dosym("%s/bin/tsc" % mod_dir, "/usr/bin/tsc")
|
||||
pisitools.dosym("%s/bin/tsserver" % mod_dir, "/usr/bin/tsserver")
|
||||
|
||||
# Dokümantasyon
|
||||
# pisitools.dodoc("README.md", "SECURITY.md")
|
||||
|
||||
# Lisans
|
||||
pisitools.insinto("/usr/share/doc/licenses/%s" % pkgname, "ThirdPartyNoticeText.txt")
|
||||
|
||||
pisitools.dodoc("SECURITY*", "SUPPORT*", "CONTRIBUTING*", "README*")
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>typescript</Name>
|
||||
<Homepage>https://github.com/microsoft/TypeScript/</Homepage>
|
||||
<Packager>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>Apache-2.0</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>JavaScript with syntax for types</Summary>
|
||||
<Description>Türler için sözdizimine sahip JavaScript</Description>
|
||||
<Archive sha1sum="7168e9fa8a18fe13acfe918767ac1e0afca5e8f2" type="targz">https://github.com/microsoft/TypeScript/archive/refs/tags/v5.9.3.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>git</Dependency>
|
||||
<Dependency>nodejs</Dependency>
|
||||
<Dependency>rsync</Dependency>
|
||||
</BuildDependencies>
|
||||
<!--
|
||||
<Patches>
|
||||
<Patch>typescript.patch</Patch>
|
||||
<Patch level="1">typescript.patch</Patch>
|
||||
</Patches>
|
||||
-->
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>typescript</Name>
|
||||
<!--
|
||||
<RuntimeDependencies>
|
||||
<Dependency>Dep1</Dependency>
|
||||
</RuntimeDependencies>
|
||||
-->
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2025-10-14</Date>
|
||||
<Version>5.9.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>typescript</Name>
|
||||
<Summary xml:lang="tr">JavaScript with syntax for types</Summary>
|
||||
<Description xml:lang="tr">Türler için sözdizimine sahip JavaScript</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user